Quote:
Originally Posted by
locoroco
How can I get awk to print all fields from $9 and onwards?
Hi locoroco,
The answer to your question really depends on what your field separator is, whether or not any of the first eight fields are empty, whether or not you need to maintain the exact text (including the input field separators) between the remaining fields when you print the results, and what version of
awk you're using. Since we don't know the answers to any of the above questions, we can only make wild guesses.
The suggestions nezabudka provided might or might not work depending on the above unspecified constraints (and on the contents of various fields).
When starting a thread here, please
always tell us what operating system you're using, what shell you're using, give us a complete description of what you're trying to do, give us a short sample input file and the exact output you hope to produce from that input, and show us what you have tried to do to solve the problem on your own.