Quote:
Originally Posted by Byenary
Hello,
I need to copy some files based on date to another folder, i am able to select the files with ls instruction la -al|grep "Mar 2 1" but how do I use the result to copy it to other destinations ?
|
If I understand you correctly, you want to copy those files elsewhere?
Just pipe them to where you want ie:
ls -la |grep "whatever" >> ~/newfile
where ~ is your home dir and then the name of the file you want
Be carefull though...using one > will change the contents of the destination file, and using two >> will add to the destination file.
Hope this helps.