On 1 0, Agi Rivera <[EMAIL PROTECTED]> wrote: ... > I'm currently studying using utilities and tools available at the > terminal. I'm puzzled by sort's behavior. The manual says that it does > not ignore trailing whitespace when sorting, you'd have to put the -b > option. However with or without the -b option, it ignores whitespace...
i tried using both openbsd sort and gnu sort (via coreutils from gnu.org) both openbsd sort and gnu sort spits out the same output (i think almost all linux distro is using gnu sort - though not sure on this) $ sort sample bread ham bacon eggs $ sort -bk 1 sample (i use gsort -b sample on gnu sort) bacon bread eggs ham > > Secondly, the manual also says that sort puts capital letter before the > small ones. The -f option should be used to "fold" the uppercase and > lowercase together. As with above, with or without the option it does this: in my test, the results are correct. $ sort sample2 Bread Eggs bacon ham $ sort -f sample2 bacon Bread Eggs ham > > Bugs or features, what am I missing here? don't really know. both bsd and gnu version of sort works fine in my test. _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List plug@lists.linux.org.ph (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph