Running a program gives some error messages such as these “ERROR File 'DATA/vgg16.npy' not found
. I know this exact sentence should appear in one or more files under a given directory, which may have multiple subdirectories. Which linux
command can help me identify the files as well as locations (line number) where that sentence is located.
Asked
Active
Viewed 73 times
0

user288609
- 641
-
1As for the part about recursively searching, the answers (and the question itself) here show a number of choices. – ilkkachu Mar 22 '17 at 13:06
1 Answers
0
Use this command
grep -r -H 'yourcharacter'
yourcharacter indicates the particular character for which you are looking for in a file.
the above command will give you the file path of a particular character.

Modassir Haider
- 191