Search Results

Search: Posts Made By: anujrichhariya
16,570
Posted By anujrichhariya
I have to use "sed" pertaining to the...
I have to use "sed" pertaining to the requirement:
command currnetly used is "cat $1 | sed 's/$'"/,`echo \$2`,`echo \$3`/" > temp.csv" but it is appending the value in all lines of csv....like...
16,570
Posted By anujrichhariya
Hi Dennis, Thanks for ur prompt reply. ...
Hi Dennis,
Thanks for ur prompt reply.

Input file like:
AUS,NZM,USA
SRI,IND
SA,BD,SNG

Appended file should have values like:
AUS,NZM,USA,1,2
SRI,IND
SA,BD,SNG

Rgds
Anuj
16,570
Posted By anujrichhariya
How to append value at first line of CSV file using shell script?
I have an issue where I need to append a value at the last of the csv, I have created a shell script and it is appending the columns at the last but it is appending at all lines, and my requirement...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 06:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy