At 2004-11-11T14:52:22+1300, Andy Leach wrote:
> is there a way of getting lsmod output to be alphabeticaly ordered?

Quickly:
$ lsmod | sort

Properly:
$ lsmod | perl -ne 'push @s, $_; END {print shift @s; print sort @s}'

Properly with case insensitivity:
$ lsmod | perl -ne 'push @s, $_; END {print shift @s; print sort {uc($a) cmp 
uc($b)} @s}'

> they returned
>    FATAL: Module ltserial not found
> and
>    FATAL: Module ltmodem not found

Run the follow command and report the output back to the list:

$ find /lib/modules -name ltserial.ko -o -name ltmodem.ko -ls

Cheers,
-mjg
-- 
Matthew Gregan                     |/
                                  /|                [EMAIL PROTECTED]

Reply via email to