Search Results

Search: Posts Made By: Sephiburp
5,871
Posted By Sephiburp
I'm on Linux Suse. I tried with nawk but it's...
I'm on Linux Suse.
I tried with nawk but it's the same result.
Then I tried with gawk and it works ! :)
Thank you.

Sephi.
5,871
Posted By Sephiburp
It works ! But I don't understand all the...
It works !

But I don't understand all the parts.

First I do some change so that it's easier to understand :
awk '{gsub(",","|",$1)}1' FS=\) RS=\( OFS=\) ORS=\(

Well I understand that we...
5,871
Posted By Sephiburp
Thanks for your reply. @Corona688 :...
Thanks for your reply.

@Corona688 : actually my first example was not correct. In fact, the data that I have to manage is more dirty. Some value is surrounded with brackets, quotes or both, or...
5,871
Posted By Sephiburp
SED - replace only on part of the string
Hello there,
I need some help.

I have a file containing this :
$ cat file
PARM1=(VAL11),PARM2=(VAL21,VAL22,VAL23),PARM3=(VAL31),PARM4=(VAL41,VAL42)

and I need to replace all the ',' by '|'...
Showing results 1 to 4 of 4

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