Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
replace Nth column
Name: john1990 Date: February 1, 2006 at 00:36:27 Pacific OS: unix CPU/Ram: 640
Comment:
Hi Firend,
Need a help in awk/sed/tr/ perl .my file is very huge, so need some fast method.
My request. ========= 1. File is delimited by | 2. in 1st column i want to replace 7 by 1 and 9 by 2 3. in 5th column need to mask first 3 charcter by XXX
input file File ========= 790|6003949 |6003949 |168|Moorthy 790|6004376 |6004376 |168|Jet Lee 790|6004418 |6004418 |168|George Philip 790|6004582 |6004582 |168|Bush America 790|6004699 |6004699 |168|John Paul
output shoud be =========== 120|6003949 |6003949 |168|XXXrthy 120|6004376 |6004376 |168|XXX Lee 120|6004418 |6004418 |168|XXXrge Philip 120|6004582 |6004582 |168|XXXh America 120|6004699 |6004699 |168|XXX Paul
Summary: 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 ...
Summary: hi, I've 2 files, file1.txt and file2.txt file1.txt has variables like 1111, 2222, 3333 4444,5555,6666 7777,8888,9999 file2.txt has values like aaaa,bbbb,cccc dddd,eeee,ffff, gggg,hhhh,iiii I wan to...
Summary: Hi, I want to excute a shell script by passing a CSV file as argument, where the file name will be based on the file that is been placed in a particular directory. Ex: cleaner.sh GSM20050609.csv the ...