In unix , moving a file with xargs after finding and zipping it?
|June 28, 2014||Posted by forumadmin under TechQns||
So in a bashscript i’ve the following very simple line , but how can i chain it further to move the file ?
find . -type f -ctime -$2 -name "mylog*.log" | xargs bzip2
This works fine but i’d also like to move the file to a new directory once I am done with the bzip2.
|Asked By – user3761584||Read Answers|