![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sort command | tonet | Shell Programming and Scripting | 5 | 05-11-2008 07:03 AM |
| help newb at linux and bash need numeric script sort | dlm1065 | Shell Programming and Scripting | 1 | 04-27-2008 04:11 AM |
| How to sort decimal values in bash | ahjiefreak | Shell Programming and Scripting | 1 | 01-21-2008 09:25 AM |
| the sort command | brianm91 | UNIX for Dummies Questions & Answers | 3 | 12-18-2007 08:50 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Sort (bash command)
I did a search on this, and found lots on SORT but no answer to my question.
I have a C program that fetches all of our users from Netware, and I have that it makes a file that I later include in a html as a select tag drop-down menu. Here is what 1 line looks like: <option value="fname.lname">Lname, Fname (CSC)</option> I have roughly 600 lines (teachers) in about 40 schools (school codes [CSC]) my question concerns the bash command “sort” the (CSC) is a code pointing to a school, I want to first sort by the school code, then sort by name within that code, and do this for every code. Is this possible using the bash command “sort”. I read this page http://www.ss64.com/bash/sort.html and I don’t think it’s possible but I would like a second opinion. thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|