[Ilugc] shell-find command
- From: benignbala@xxxxxxxxx (Balachandran Sivakumar)
- Date: Sun, 19 Feb 2012 23:39:27 +0530
Hi,
On Sun, Feb 19, 2012 at 9:19 PM, rmariya sagaya asirvatham
<asir.linux at gmail.com> wrote:
how can i send this output ?to a directory for take backup.
If it is really a directory you want to move to, you can try this
find / -mtime 1 -exec cp -t dest_folder {}\+
The {}+ would append all those files that match and finally move all
of them to dest_folder.
BTW, this is the only use of the -t flag to the cp command that I can
think of ;) Thanks
--
Thank you
Balachandran Sivakumar
Arise Awake and stop not till the goal is reached.
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?- Swami Vivekananda
Mail: benignbala at gmail.com
Blog:
http://benignbala.wordpress.com/
Other related posts: