Ah, the awk .. operator.... :-Pmy @tosort; while( <DATA> ) { if( m|<address>| .. m|</address>| and not m|</?address>| ) { push @tosort, $_; next } print for sort splice @tosort; print }
In reply to Re: difficulty in sorting
by massa
in thread difficulty in sorting
by texuser74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |