The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 03-31-2006
booboo booboo is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 3
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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0