find is a command line utility to search for files in a directory hierarchy

learn more… | top users | synonyms

-3
votes
1answer
95 views

How to tell xargs to unpack tar into certain directory [closed]

I wrote my first script which goes: find /media/temp/test -type f -printf '%T@ %p\n*.tar.gz' | sort -n | tail -1 | cut -f2- -d" " | xargs tar -xvpf I would like to find latest modified file which ...
-4
votes
1answer
106 views

What command in bash to search for this string?

file.txt contains: aa=testing sss=whoiam bbb=findme What command do I use to search for testing and print it? Expected result: # you search testing
-4
votes
1answer
44 views

What is the significance of the the leading “4” before the listing of modified files?

After running the following command: find /Users/UserName/Documents -type f -mtime -1 -print0 | xargs -0 du -sk | sort -nr I receive the following output: 4 ...
-4
votes
2answers
697 views

How to find a file containing a string? [duplicate]

Possible Duplicate: How can I find a file whose name includes a given string, such as “abcde”? How to find files in terminal that contains the string "foo"? I tried the ...