> The new termrc avoids using test when looking for swap partitions.

I tend to like to slip a "sort -nr" into the fry, it allows me to pick
the largest swap partition when I have multiple disks.  Not
necessarily what everyone may want, of course:

swp=`{ls -s /dev/sd*/swap | sort -nr | sed 1q | awk '{print $2}'}

++L

Reply via email to