From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] termrc changes From: Lucio De Re Date: Wed, 29 Nov 2006 06:43:41 +0200 In-Reply-To: <85ddf2f6f3d679b9fc463f5dda358380@plan9.bell-labs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: e7e5fddc-ead1-11e9-9d60-3106f5b1d025 > 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