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 -->
  #3 (permalink)  
Old 10-23-2006
napolayan napolayan is offline
Registered User
 

Join Date: Oct 2006
Location: Bangalore, India
Posts: 41
Quote:
Originally Posted by babu@shell
hi,
am new to unix can any one help me to insert data to afile to a specified
column.

ie to an output file with csv format i should insert some data to 2,3,4 fileds and the data in those fields should move to next fields

eg:
output file

asd,12,12,12,12,1,2,1,1,1,1,1
mnmn,1,12,1,1,1,112,12,1,1,1


insert data

after asd 33,44
after mnmn 55,66


ie required o/p

asd,33,44,12,12,12,12,1,2,1,1,1,1,1
mnmn,55,66,1,12,1,1,1,112,12,1,1,1
clarify a few things...the data u'll be inserting will be in a file? n the no. of rows in that file is equal to the no. of rows in the file to which u wanna insert?

i mean, if u have 10 rows in the file u want to change, u want to insert data into all the 10 rows n in a sequential manner?
Reply With Quote