psed -n '=' inputfile | psed 's/.*/&w &.line/' | psed -nf - inputfile
Update: this solution is probably good for only a few lines.
In reply to Re: splitting output to separate files, one per line
by ambrus
in thread splitting output to separate files, one per line
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |