The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 03-03-2006
bigearsbilly bigearsbilly is offline
Registered User
 

Join Date: Feb 2006
Location: Southern England
Posts: 102
Code:
for f in SCA????????_?????_IN.TXT;do
      echo mv $f ${f%%_*}_IN.TXT
done
ksh
obviously remove the echo
Reply With Quote