The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 07-16-2008
FunibonE FunibonE is offline
Registered User
  
 

Join Date: Jul 2008
Location: Silicon Forest
Posts: 16
Quote:
Originally Posted by fpmurphy View Post
Code:
sed -e 's/^[0-1][0-9][0-9]/& /'  file
Thank you but this file has other numbered variables too so I cannot search for numbers alone or characters alone. I must be able to search for 001FILE as a whole and then split the output into 001 FILE.

On another note, it doesn't have to be sed. I'm working on Sun Solaris 10 so which ever utility available by default will work too.

Any other ideas?