Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ls -lR $HOME > $HOME/ls.log
- find / -type f -size +1M > bigfiles_pom
- if [ ! -r ];
- then
- echo "Nie moge czytac z pliku pomocniczego"
- exit 1
- fi
- while read linia
- do
- stat --printf "%n:%G:%a:" $linia >> $HOME/bigfiles
- du -m $linia | awk '{print $1"MB"}' >> $HOME/bigfiles
- done < bigfiles_pom
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement