Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user=root;
- data=May 24;
- ls -l > lista;
- grep -E "$user|$data" lista | awk '{print $9}' > listanoua;
- while read line
- do
- cp $line /root/testanne;
- done <listanoua
- tar -czvf arhivaanne.tar.gz /root/testanne;
- while read line
- do
- rm "$line";
- done <listanoua
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement