Skip to main content

Remove first 2 columns from first row of a file

I am looking for a command to remove first 2 columns from the first row of a file. The delimiter for the columns is a pipe. Number of columns vary.

we just need to blindly remove first 2 columns. sample below.

input: col1|col2|col3|col4

output col3|col4