Sunday, April 28, 2024
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 9526  / 1 Year ago, thu, march 23, 2023, 9:53:42

How can I cut second column from the following list from terminal?



56    267  
57 235
58 255
59 283

More From » command-line

 Answers
7

If the data is in a file called test.txt, awk '{ print $1 }' test.txt will do it.


[#28806] Saturday, March 25, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
stantildlike

Total Points: 363
Total Questions: 135
Total Answers: 120

Location: Pitcairn Islands
Member since Fri, Dec 17, 2021
2 Years ago
;