Search Results

Search: Posts Made By: tostay2003
2,245
Posted By tostay2003
Sorry i forgot to put that in my earlier example....
Sorry i forgot to put that in my earlier example. I did use the \ to escape the single quotes, but it doesn't work
StringB=$(echo $StringA | awk -F',' 'BEGIN { OFS="," } { for (i=1; i<=NF;i++)...
2,245
Posted By tostay2003
single quotes in awk statement
Hi,

I have written a code to modify a string say,

StringA=abc,def,ghi

I need to change it to something like:

StringB=This means abc='ABC', This mean def='DEF', This means ghi= 'GHI'
...
Showing results 1 to 2 of 2

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