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 the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 05-25-2007
vino's Avatar
vino vino is online now Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
Quote:
Originally Posted by happyv
thx, but the file have many different fileds should as <customer>, <price>, etc
I ONLY need to do <Number>, how your settlement work for this?
Then it becomes much simpler

Code:
sed -e "s/\(<Number>..\).*\(<Number>\)/\1\2/g" file