HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] Anyway to control the order that faxstat lists them modems?



John Warren wrote:
I know this is not a big deal but I'd like to control the order that faxstat list the modems. By default it seems to be somewhat random. I've been looking but have found nothing on the subject.

Hey, this is UNIX; of course it's possible. That said, the corner-case handling would be better if sed's regexes supported negative lookahead expressions.


faxstat \
  | sed -r \
     -e '1 { s/^/0:/; }' \
     -e '/^Modem/ { s/(Modem [^0-9]+([0-9]+))/\2:\1/; }' \
  | sort -n \
  | sed -re 's/^[0-9]+://'


____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions