Heya,
any ideas how one can "shift" all the fields in a record one position to the "left" starting at a given "field"?
startField=2
input
-----
1 2 3 4 5
output
------
1 3 4 5
I know how to implement it with "loops" and NF - I'm simply looking for a "one-liner" where I can "shift" and print _reevaluated_ record.
vlad
any ideas how one can "shift" all the fields in a record one position to the "left" starting at a given "field"?
startField=2
input
-----
1 2 3 4 5
output
------
1 3 4 5
I know how to implement it with "loops" and NF - I'm simply looking for a "one-liner" where I can "shift" and print _reevaluated_ record.
vlad