| 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
|