Search Results

Search: Posts Made By: bonrad
16,142
Posted By bonrad
it works, but it cannot handle filenames with...
it works, but it cannot handle filenames with whitespaces.

/usr/bin/time -o /tmp/time.txt -f %E find /home/ -regex ".*\.\(avi\|mp3\|mpeg\|mpg\|iso\|rar\)" -exec ls -sh {} \; |awk '{print $2" |...
16,142
Posted By bonrad
Formatting ls output
I am using find and ls to search for "warez" files on my server.

find /home/ -regex ".*\.\(avi\|mp3\|mpeg\|mpg\|iso\)" -print0 | xargs -0 ls -oh

This command produces this:

-rw-r--r-- 1...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 07:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy