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 -->
  #1 (permalink)  
Old 02-21-2007
happyv happyv is offline
Registered User
 

Join Date: Sep 2006
Posts: 209
change some record item

Hi all,

I have a file with over 10,000 line, but I would like to update/add some code number (such as 062 below) into the line with <phone number> below:

11111<name> john matin <name>
12345<phone number> 123456 <phone number>
34556 <address> 1234 lucky road <address>

11111<name> john matin <name>
12345<phone number> 062 123456 <phone number>
34556 <address> 1234 lucky road <address>

how to do it in script?
Reply With Quote
Remove advertisements
!!
Forum Sponsor