Cover V02, I03
Article
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Listing 1
Table 1
Table 2

may93.tar


Listing 1: list.dev

#!/bin/ksh
# filename : list.dev
# jmc - device listing
lsdev -C|cut -f1 -d" "|xargs -i% format.dev %
# end of file

#!/bin/ksh
# filename : format.dev
# jmc - format device listing
case $1 in
tty*) echo "Terminal = \\c"
echo $1
lsattr -l $1 -a "speed,parity,bpc" -E
echo "----------------------------------------------------------\\n";;
lp* ) echo "Printer = \\c"
echo $1
lsattr -l $1 -E
echo "----------------------------------------------------------\\n";;
rmt*) echo "Tape Drive = \\c"
echo $1
lsattr -l $1 -E
echo "----------------------------------------------------------\\n";;
*   ) echo "Device = \\c"
echo $1
lsattr -l $1 -E
echo "----------------------------------------------------------\\n";;
esac
# end of file