File:  [Paefchen] / home / as / .csh / rcdgetconfigarg.sh
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Mon Jan 7 06:03:02 2008 UTC (16 years, 10 months ago) by as
Branches: MAIN
CVS tags: HEAD
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