Advertisement
Guest User

Untitled

a guest
May 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. user=root;
  2. data=May 24;
  3. ls -l > lista;
  4.  
  5. grep -E "$user|$data" lista | awk '{print $9}' > listanoua;
  6.  
  7. while read line
  8. do
  9. cp $line /root/testanne;
  10. done <listanoua
  11.  
  12. tar -czvf arhivaanne.tar.gz /root/testanne;
  13.  
  14. while read line
  15. do
  16. rm "$line";
  17. done <listanoua
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement