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.

---
$world=~s/war/peace/g

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
    Great thanks!!

      Its not at all clear what you meant by "grep" in this context. Nothing is being grepped.

      ---
      $world=~s/war/peace/g