Click to See Complete Forum and Search --> : find output question
mrlayance
01-25-2005, 07:02 PM
I used the following command
find /Mp3 -type f -name "*.mp3" > /opt/SHOUTcast/playlists/playlist.lst
The output is not in order? Any idea how to make the output arange alphabetically?
DSwain
01-25-2005, 09:10 PM
I know from reading some bash scripting stuff, there's some app which does that for you... I've gotta try and find it for you again.
asarch
01-26-2005, 09:30 PM
What about this:
[$] sort < /opt/SHOUTcast/playlists/playlist.lst > /opt/SHOUTcast/playlists/sorted_playlist.lst
And as always, check the manual of sort with this:
[$] man sort
By the way, find doesn't has any option to sort its output, you have to do manually with the previous command.
DSwain
01-26-2005, 09:59 PM
Haha, there ya go. That's the command I was looking for. And to think, it was that obvious lol.
justlinux.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.