Search Results

Search: Posts Made By: Don Cragun
5,908
Posted By Don Cragun
One might also try: awk -F, ' NF { for(i = 1;...
One might also try:
awk -F, '
NF { for(i = 1; i < NF; i++) {
printf("| (%s", $1)
for(j = 2; j <= i; j++)
printf("%s%s", FS, $j)
printf(") %s ", $i)
}
print "| " $NF
}' file
This...
Showing results 1 to 1 of 1

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