Sunday, May 9, 2010

Move large number of files in solaris using "awk"

  • Change directory where your files are located.
  • Use the following "awk" script to move files from one location to another.
  for k in `ls | awk '{print $1}'`; 
  do 
  mv $k destination;
  done

No comments:

Post a Comment