•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 329,813 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,830 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser:
Views: 109 | Replies: 2
![]() |
•
•
Join Date: Oct 2007
Posts: 188
Reputation:
Rep Power: 0
Solved Threads: 15
You can also use the -u flag to sort, which can pick out fields:
sort -t, -u -k2,2 -k4,4
Best wishes,
Mike
sort -t, -u -k2,2 -k4,4
Best wishes,
Mike
Linux and Unix Tips, Tricks and Individual Advice - The Linux and Unix Menagerie!
------------------------------------------------------------------------
Find Great Help With UNIX Commands Here, As Well! MySysAd.com
------------------------------------------------------------------------
Find Great Help With UNIX Commands Here, As Well! MySysAd.com
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
DaniWeb Marketplace (Sponsored Links)
Other Threads in the Shell Scripting Forum
- Previous Thread: Sending email from a shell script
- Next Thread: searching for a record in a file


Linear Mode