Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ls -lR $HOME > $HOME/ls.log
  4.  
  5. find / -type f -size +1M > bigfiles_pom
  6.  
  7. if [ ! -r ];
  8. then
  9. echo "Nie moge czytac z pliku pomocniczego"
  10. exit 1
  11. fi
  12. while read linia
  13. do
  14. stat --printf "%n:%G:%a:" $linia >> $HOME/bigfiles
  15. du -m $linia | awk '{print $1"MB"}' >> $HOME/bigfiles
  16. done < bigfiles_pom
  17.  
  18. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement