3
rated 0 times
[
3]
[
0]
/ answers: 1 / hits: 402
/ 3 Years ago, thu, may 27, 2021, 12:41:32
Suppose that I have an output of lines like this:
First name, Last name, 123456789(9 digits)
GPA
Class
Major
University
How can I write some code to print the first 3 lines and only keep the ID number in the first line?
I tried to use head
, grep
and cut
, but I wasn't able to do it.
More From » command-line