[TriLUG] bash question

Joseph Mack NA3T jmack at wm7d.net
Wed Oct 17 15:10:27 EDT 2007

On Wed, 17 Oct 2007, Magnus wrote:

> Try this:
> awk '{ print $4 }' /proc/partitions | grep -e '^[h,s]d.$'

holy cow! neat!

(I've been scratching my head about handling sd. and hd. 
disks and thought I'd handle that later.)

There's a minor problem. One machine has a disk that's not 
mounted, which is why I tried the /etc/fstab route.

I'm still interested in finding out how to concatenate 
strings to make commands programmatically.


Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!

More information about the TriLUG mailing list