小编Pra*_*ate的帖子

Windows 中的 find 和 findstr 命令之间有什么区别?

在 Windows 中,findfindstr命令之间有什么区别?

两者似乎都在文件中搜索文本:

C:\> find /?
Searches for a text string in a file or files.

FIND [/V] [/C] [/N] [/I] [/OFF[LINE]] "string" [[drive:][path]filename[ ...]]

  /V         Displays all lines NOT containing the specified string.
  /C         Displays only the count of lines containing the string.
  /N         Displays line numbers with the displayed lines.
  /I         Ignores the case of characters when searching for the string.
  /OFF[LINE] Do not skip files with offline attribute set.
  "string"   Specifies …
Run Code Online (Sandbox Code Playgroud)

windows command-line find findstr

31
推荐指数
3
解决办法
6万
查看次数

如何转义管道符号| 高分辨率照片| CLIPARTO 在 bat 脚本中?

我需要在名为 command.bat 的批处理脚本中回显像这样的命令用法

command.bat on|off
Run Code Online (Sandbox Code Playgroud)

我不能用

echo %0 on|off
Run Code Online (Sandbox Code Playgroud)

我知道我可以使用

echo "%0 on|off"
Run Code Online (Sandbox Code Playgroud)

但它把引号放在一起

有没有其他办法?

pipe echo batch-file

28
推荐指数
1
解决办法
3万
查看次数

标签 统计

batch-file ×1

command-line ×1

echo ×1

find ×1

findstr ×1

pipe ×1

windows ×1