≡ Menu


awk / cut: Skip First Two Fields and Print the Rest of Line

I‘d like to skip first two or three fields at the the beginning of a line and print the rest of line. Consider the following input:

This is a test
Giving back more than we take

I want my input file with the following output:

a test
more than we take

How do I printing lines from the nth field using awk under UNIX or Linux operating systems?
[click to continue…]

Sysadmin because even developers need heroes!!!