bobo
March 27th, 2006, 02:11 PM
Hello
not sure if this is the right forum for this question, and I did make a search first. but anyways...
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>
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
not sure if this is the right forum for this question, and I did make a search first. but anyways...
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>
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