Using file test - Part 2
if [ -p "/dev/initctl" ]
then
echo "I am the pipe file"
fi
if [ -b "/dev/hda" ]
then
echo "I am the block file"
fi
if [ -c "/dev/vc/1" ]
then
echo "I am the character file"
fi
then
echo "I am the pipe file"
fi
if [ -b "/dev/hda" ]
then
echo "I am the block file"
fi
if [ -c "/dev/vc/1" ]
then
echo "I am the character file"
fi
0 Comments:
Post a Comment
<< Home