I'm running the following command in a bash shell, and the result is not sorted. Am I missing something obvious here?
ls /bin /usr/bin | grep -v '/bin:$'| grep -v '^$' | sort > proglist
Instead of a sorted list, the results are:
2to3
2to3-
2to3-2.7
2to32.6
BuildStrings
CpMac
DeRez
GetFileInfo
MergePef
MvMac
RSA_SecurID_getpasswd
ResMerger
Rez
RezDet
RezWack
SetFile
SplitForks
UnRezWack
[
a2p
a2p5.12
a2p5.16
addftinfo
afconvert
afhash
afida
afinfo
afmtodit
afplay
agentxtrap
agvtool
alias
allmemory
applesingle
appletviewer
apply
apr-1-config
...