0

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.

user288609
  • 641
  • 3
  • 8
  • 16
  • 1
    As for the part about recursively searching, the answers (and the question itself) [here](http://unix.stackexchange.com/questions/131535/recursive-grep-vs-find-type-f-exec-grep-which-is-more-efficient-faster) show a number of choices. – ilkkachu Mar 22 '17 at 13:06

1 Answers1

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.