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.
In reply to Re^2: repeat data at one line and grep as pre-set format
by demerphq
in thread repeat data at one line and grep as pre-set format
by benlaw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |