Search Results

Search: Posts Made By: ciba
2,644
Posted By ciba
thanks it works ... :)
thanks it works ...

:)
2,644
Posted By ciba
the input file cannot be changed ::(
the input file cannot be changed ::(
2,644
Posted By ciba
awk -F, 'NR>2{$3="\042"++c"\042"}1' OFS="," file ...
awk -F, 'NR>2{$3="\042"++c"\042"}1' OFS="," file

this is too giving me an additional line first line
second
1,"wes","1","ws"
1,"was","2","qwa"
,,"3"

in the end ...

---------- Post...
2,644
Posted By ciba
THIS IS PRINTING AN ADDITIONAL THIRD LINE ... ...
THIS IS PRINTING AN ADDITIONAL THIRD LINE ...

first line
second
1,"wes",1,"ws"
1,"was",2,"qwa"
,,3,

i think it will work .. but can make me understand the logic ?

---------- Post...
2,644
Posted By ciba
awk -F, '{x=x+1} {print $1","$2","x","$4}' ...
awk -F, '{x=x+1} {print $1","$2","x","$4}'



This gives output :
first line,,1, second,,2,
1,"wes",3,"ws"
1,"was",4,"qwa"
,,5,

it alters first 2 lines as well...

---------- Post...
2,644
Posted By ciba
modifying specific lines a file
Hi
I need to modify entire file starting from the 3 line. file looks like this
filename : exp

first line
second
1,"wes","est","ws"
1,"was","qwe","qwa"

also i have to replace the third...
1,952
Posted By ciba
Hi I need to modify entire file starting from...
Hi
I need to modify entire file starting from the 3 line. file looks like this
filename : exp

first line
second
1,"wes","est","ws"
1,"was","qwe","qwa"

also i have to replace the third...
Showing results 1 to 7 of 7

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