Search Results

Search: Posts Made By: protosd
30,756
Posted By pamu
Try awk -F "," 's != $1 || NR...
Try

awk -F "," 's != $1 || NR ==1{s=$1;if(p){print p};p=$0;next}
{sub($1,"",$0);p=p""$0;}END{print p}' file
30,756
Posted By elixir_sinari
Assuming that the first occurrence of the whole...
Assuming that the first occurrence of the whole second field is at the second-field:
awk -F, 'NR!=1 && p1!=$1{print prev;prev=""}
{p1=$1;prev=(prev"")?prev FS substr($0,index($0,$2)):$0}...
Showing results 1 to 2 of 2

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