Advertisement
balaji

UNIX

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