Linux Terminal Glossary
›
Text Processing
sort -k2 file.txt
Category:
Text Processing
sort -k2 file.txt
Copy command
Sort by the second field
Sorts by the second space-separated field (column) instead of the whole line.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.