in reply to Re: repeat data at one line and grep as pre-set format
in thread repeat data at one line and grep as pre-set format
Imo if you are going to do that then you should just do an s///
perl -pe "s/(\d{8}\s+\d{5})(\s+)/$1\n/g" t.txt
In sure there is a way to do that without needing to copy $1, but I couldnt work it out quickly enough to post.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: repeat data at one line and grep as pre-set format
by davido (Cardinal) on Jan 24, 2006 at 10:13 UTC | |
by BrowserUk (Patriarch) on Jan 24, 2006 at 10:59 UTC |