Sunday, 15 April 2012

unix - search for text in recently created files -



unix - search for text in recently created files -

i'm working on old unix scheme , need search text in files created within lastly 3 hours. here's current command:

grep qual file.txt

i want search qual in files created in lastly 3 hours...help

this can way:

find /your/path -mmin -180 -type f -exec grep "qual" + ^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^^^ 3 hours files qual in files found

unix grep find

No comments:

Post a Comment