Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1.ls -R
- 2.grep include ./*
- 3.for f in *.*; do mv “$f” Unix_”$f”; done
- 4.for f in *.txt; do d="$(head -1 "$f") ;x=”$(cut -d " " -f1 $f)” ; mv $f $x; done
- 5.wc –l *.txt
- 6.for i in ./*foo*;do mv -- "$i" "${i//foo/bar}";done
- 7.history|sort|cut –d-10 -n
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement