Advertisement
balaji

UNIX

May 16th, 2011
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  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