The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 01-15-2008
bobbygsk bobbygsk is offline
Registered User
 

Join Date: Oct 2007
Posts: 86
I'm a beginner in UNIX. So I can do this in 6 steps.

1) ls -l | awk '{print $9}' > getfilenames1.txt
2) cp filenames1.txt filenames2.txt
3) vi filenames2.txt
i) :%s/ff.//g
4) vi filenames1.txt
i) :%s/^/mv /g # note blant after mv
5) paste -d" " filenames1.txt filenames2.txt > filename3
6) run filename3.

I know it can be done in one command at the prompt. But as a beginner, I have to try.
Reply With Quote