Skip to content
Advertisement

Print a column without 1st item of that column

Good night everybody, i want to print a column without printing the 1st item of that column.

I want print the 4th column of this csv file:

JavaScript

So i do this:

JavaScript

But this print:

JavaScript

But i only want the numbers, so i want to print all except the first line (MediaAcesso), how can i do this? Can i do this with AWK?

Thank you!

Advertisement

Answer

Don’t think of it as skipping the first element of a column, you just want to skip processing the entire first row of the file. So check the record number and only process records after that one.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement