Ubuntu findstr: command not found
时间: 2023-06-21 19:09:54 浏览: 217
findstr2:用于具有更好多行支持的 windows 的 findstr 命令行工具
`findstr` is a command used in Windows, and is not available in Ubuntu by default. In Ubuntu, you can use the `grep` command to search for strings in files.
For example, to search for the string "hello" in a file called "example.txt", you can use the following command:
```
grep "hello" example.txt
```
If you want to search for the string in multiple files, you can use the following command:
```
grep "hello" *.txt
```
This will search for the string "hello" in all the files with the extension ".txt" in the current directory.
阅读全文