Biasanya guna bila nk alihkan backup file ke folder yg baru secara automatic...Cth script tersebut seperti di bawah::
#!/bin/bash
d=`date "+%b%d"`
mkdir /home/$d
cd /home/stuff
find . -depth -type f -name '*' -mtime -1 -exec mv {} /home/$d \;
Rujukan :
http://www.linuxquestions.org/questions/linux-newbie-8/script-to-move-files-242911/
No comments:
Post a Comment