and silver plated answer is :

# file -s /dev/hda2 | grep -iq swap ; echo $?
0
# file -s /dev/hda2 | grep -iq swapx ; echo $?
1



--
Adam Sulmicki
http://www.eax.com      The Supreme Headquarters of the 32 bit registers

Reply via email to