Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1.
- find / -type f | sort | uniq > all_file
- grep "\.h$" all_files > all_h
- 2.
- find /usr -type f -name "*\.c" -size -2k |wc -l
- 3.
- find /usr/include -maxdepth 1 -type f -name "*\.h" -exec grep "#define" {}
- \; | wc -l
- 4.
- ls -l -S /etc | head -n 4
- 5.
- a)
- find roboczy/ \( -name '[ab]*' -o -name '[g-n]*' \) -exec cp {} kosz/ \;
- lub
- find roboczy/ -name "[a,b,g-n]*" -exec cp {} kosz/ \;
- b)
- for i in `ls ./roboczy | grep ^[aoe]`; do mv "./roboczy/$i"
- "./roboczy/${i^}"; done
- c)
- find roboczy/ -name "c*0[1-9]" -exec mv {} kosz/ \;
- 6.
- tr -d '\r' < plik > plik2
- 7.
- m=`df /dev/sda -h | tail -n 1 | cut -c29-33`
- echo $m
- 8.
- last | grep -v still | head -n 5 | cut -c17-40
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement