bkreynolds48
asked on
use find to get files from one day and pipe to tar
I have been trying to figure out how to find all files in a directory that have date of say Dec 1 and tar them to a file.
Any help would be appreciated
Any help would be appreciated
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ls -laR|grep 'Dec 1 ' | awk '{ print $9 }' | xargs tar cvf $TARFILE
Yet another way to accomplish this is the following:
ls -laR| grep 'Dec 1 ' | cut -c55- | xargs tar cvf $TARFILE