Print every field of a line, except the first, one per line,
with the first field prepended.
2006.12.29
Description
- Each line consists of several fields separated by one or more blanks.
- There are no leading or trailing blanks.
|
| Raw Input
|
| Desired Output
| 1001 one two
1002 three four five
1003 six
1004 seven eight
|
| 1001 one
1001 two
1002 three
1002 four
1002 five
1003 six
1004 seven
1004 eight
|
|
Script and Comments
Script1 [ 1] s/^([^ ]+) +[^ ]+ /&\n\1 /
[ 2] P
[ 3] D
| |
|