pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg_alternatives, Darwin and locale



On Sun, Jul 20, 2008 at 04:26:47AM +0200, Christian Biere wrote:
> +cat "${userfile}" __CONF_FILE__ __DB_FILE__ 2>/dev/null | \
> +{
> +    while read line
> +    do
> +        line="${line##\#*}"
> +        prog="${line%%\ *}" 
> +        if [ X != "X${prog}" ] && [ -x "${prog}" ]
> +        then exec ${line} "${@}"
> +        fi
> +    done

Can you make this awk please? read is horrible slow for larger files...

Joerg


Home | Main Index | Thread Index | Old Index