in reply to parse a line with varied number of fields

What does your current attempt look like, and how is it failing to meet your specification?


Dave

  • Comment on Re: parse a line with varied number of fields

Replies are listed 'Best First'.
Re^2: parse a line with varied number of fields
by raggmopp (Novice) on Jul 03, 2012 at 13:33 UTC

    I have updated with with some code. I can identify the lines but the number of fields per line can vary.

    Cut fields 0-7 and cut fields $NF - -8. What remains is the file name with spaces. The number of fields left to print could be varied, 1 fields, 2 fields, ...

    Thanks