Sometimes code readability is improved by breaking a pipe into individual commands, one per line.
cat $InFile \
|cut -d, -f7- \
It would be even better to comment every line...
cat $InFile \ # Read input file
|rev \ # Reverse (flip each line end-for-end)
|cut -d, -f7- \ # Toss fields 1-6
|rev \ # Reverse, again
> $Work3 # Write interim result to a work file
won't allow this.
allow you to break a line such as
ruby -pe '$_=$_.chop.split(/ /, -1).reverse.join(" ")+"\n"' file
into pieces with a comment for each piece?
Daniel B. Martin