Search Results

Search: Posts Made By: aravindan
4,107
Posted By Chubler_XL
Just replace i==1?str$1 with (i==1)?str$1
Just replace i==1?str$1
with (i==1)?str$1
4,107
Posted By pravin27
Something like this? awk -v...
Something like this?
awk -v str="\nNew\tNew\nS.No\tName\n(XX)\t(Y)\n" 'BEGIN{printf str} {if(NR%5==0){print $1"\t"$2;i=1}else{printf i==1?str$1"\t"$2"\n":$1"\t"$2"\n";i=0}}' infile
Showing results 1 to 2 of 2

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