Return to rcdgetconfigarg.sh CVS log | Up to [Paefchen] / home / as / .csh |
Hello My Home ;)
#!/bin/sh # $Paefchen: home/as/.csh/rcdgetconfigarg.sh,v 1.1 2008/01/07 06:03:02 as Exp $ if [ $# = "0" ] then sets=`awk -F = '{print $1}' | tr "\n" ' '` fi if [ -r /etc/defaults/rc.conf ] then . /etc/defaults/rc.conf source_rc_confs elif [ -r /etc/rc.conf ] then . /etc/rc.conf fi if [ $# = "0" ] then set | while read line do echo "var: $line" done else for arg in $* do echo $(eval echo \$`echo $arg`) done fi