Hallo Bob! > eval $(sed -n -e 's/=\(.*\)/="\1"/p' < file)
Why do you redirect the input file here? eval $( sed -n -e 's/=\(.*\)/="\1"/p' file ) ... shall do the job. In addition it is possible to strip of spaces around = (if required): eval $( sed -n -e 's/ *= *\(.*\)/="\1"/p' file ) With some more tricky sed scripts you can even suppress comments in the file, select only specific variables for usage and more, e.g. eval $( sed -n \ -e '/^$/d' \ -e '/^#/d' \ -e 's/^\([a-z_]+\) *= *\(.*\)/\1="\2"/' \ -e '/^abc=/p' \ -e '/^xyz=/p' \ file ) ... just to give some examples. -- Harald _______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox