in reply to repeat data at one line and grep as pre-set format
perl -aF/\s+/ -lne"print join qq(\t),splice(@F,0,2) while @F" t.txt
Adjust the quotes to suite your shell.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: repeat data at one line and grep as pre-set format
by benlaw (Scribe) on Jan 24, 2006 at 09:01 UTC | |
by demerphq (Chancellor) on Jan 24, 2006 at 09:03 UTC |