Search Results

Search: Posts Made By: Bobby_2000
1,615
Posted By RudiC
Wasn't too clear in the spec. Try awk -F, ' RES...
Wasn't too clear in the spec. Try awk -F, '
RES ~ "^" $1 FS {X=$1
sub (X FS, "")
RES=RES FS $0
next
}
{if (NR...
1,257
Posted By RavinderSingh13
Hello Bobby_2000, Following may also help you...
Hello Bobby_2000,
Following may also help you in same.

awk '{X[++q]=$1 FS $2 FS $3 FS $4 FS $5 FS $6 FS $7;k=1} {for(i=8;i<=NF;i++){j=(i==8)?++j:j;if(k%3==0){S=S FS $i;print X[j] FS S;S=""}...
1,257
Posted By Scrutinizer
Is the output TAB delimited only until field 7...
Is the output TAB delimited only until field 7 and the rest with spaces or are all fields separated by TABs ?
1,257
Posted By RudiC
Not the slightest attempt from your side? pity......
Not the slightest attempt from your side? pity...
Try straightforwardawk '{for (i=8; i<=NF; i+=3) print $1, $2, $3, $4, $5, $6, $7, $i, $(i+1), $(i+2)}' file
AWA Divi DD01 None 1 2 Room AC...
1,938
Posted By RudiC
Quoting Don Cragun:
Quoting Don Cragun:
Showing results 1 to 5 of 5

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