Search Results

Search: Posts Made By: carlos_anubis
3,054
Posted By jim mcnamara
awk 'BEGIN {printf("(");} ...
awk 'BEGIN {printf("(");}
{printf"("'%s'," ) }
END {printf(")\n") } ' inputfile > outputfile


See how that does for you
3,054
Posted By aigles
You can do something like that :awk -v Q="'" ' ...
You can do something like that :awk -v Q="'" '
BEGIN {
ORS = "";
print "(";
}
{
print (NR>1 ? "," : "") Q $0 Q;
}
END {
print ")\n";
}' inputfileInputfile:Y781
TGH8...
Showing results 1 to 2 of 2

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