Print everything except a certain field with awk

[code lang=”bash”]awk ‘{$1=””; print $0}'[/code]

This will print the whole line except for the first field (because you’ve set it to null).

Leave a Reply