script to make a device list

This commit is contained in:
zolliker
2004-11-18 14:33:42 +00:00
parent 4f5260651e
commit 86ea90f702

11
tecs/make_list.tcsh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/tcsh
printf "\n\n"
foreach file ($*)
set nam=${file:t:s/.cfg//}
set def="`grep "dev=" $file`"
alias def "set$def"
if ("$def" != "") then
def
printf "%-10s %s\n" $nam "$dev"
endif
end