Best way to find the numeric value in UNIX file system
This question already has an answer here:
You surely have some reason for using find
in combination with grep
, but just in case:
You can replace your command by:
grep -r "9461" .
and if you want even line numbers
grep -rn "9461" .
As JonathanLefflero commented, there is also the option -e that make grep match againt a regular expression, so, the ultimate command would be
grep -rne 9461
You should take a look on grep man page
A final note, you should check if what you want to grep is "9461"
or 9461
without ""
.
上一篇: 在其中找到具有特定关键字的文件
下一篇: 在UNIX文件系统中查找数值的最佳方法