grep - List filename not contain some keywords in the dictory file -


In a folder, there are many files, in which the file name contains timestamp information, for example,

callMic-13501358220-414404433.caf (414404433 is timestamp) callMic-18901111584-414235643.caf ....

I have a text file (timestamp.txt ) Which is used as a dictation text file contains a timestamp per line, as shown below.

  414247851 414235643 414226229 .... ..  

I have to list all the filenames that do not include timestamps listed in the timestamp.

  grep -vfwf timstamp.txt file name .txt  

If your file name is not in the file, you can search

  LS-1 or Magic .. | Grep -vFwf timestamp.txt  

Comments