Computing.Net > Forums > Unix > replace a column with a new column

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

replace a column with a new column

Reply to Message Icon

Original Message
Name: ahmedwaseem2000
Date: September 5, 2005 at 21:25:19 Pacific
Subject: replace a column with a new column
OS: unix
CPU/Ram: 256
Comment:

Hi Can any one tell me how to replace the 10 column(comma seperated) with a new column(present in a new file single column). Thanks for you


Report Offensive Message For Removal


Response Number 1
Name: nails
Date: September 6, 2005 at 08:46:28 Pacific
Reply:

And what is the algorithm for obtaining data from the file? I think you need to post an example.


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home



Results for: replace a column with a new column

replacing a character with a tab
    Summary: Hi, I have some data which is comma delimited. How do I change it to be tab delimited? I tried sed 's/,/\t/g' but it just replaced the commas with a t. ...
www.computing.net/answers/unix/replacing-a-character-with-a-tab/4966.html

How to replace a string w/ var
    Summary: Hi, I would like to replace all "mytestcase" with a variable $name. I have a for loop that reads: foreach newname ('more name_list') set name= $newname:r ...
www.computing.net/answers/unix/how-to-replace-a-string-w-var/7439.html

displaying words in a row to column
    Summary: I think you want each name, first and last, in one column. You could use awk, but it's boring. How about this: #!/bin/ksh sed 's/,/ /g' data.file |xargs -n1 # end script Use sed to replace each comm...
www.computing.net/answers/unix/displaying-words-in-a-row-to-column/4945.html








Which MP3 player do you have?

iPod/iPhone
Zune
Something Else
None


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge
Poll History






Data Recovery Software