in reply to sorting inside specific
<sep> <sep>pair
perl -lne'print unless$s;push@s,$_ if$s;if(/<sep>/){if($s){foreach(sor +t @s){print}$s=0}else{$s+=1}}'
This is a bit quick and dirty as the last tag is included in the sort (no prob if the items to be sorted are all numeric)
Cheers,
|
|---|