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