On Tue, Dec 11, 2007 at 09:35:41AM +0100, Matthias Schmidt wrote:
> case "$1" in
> -i)
> awk -F\| -v name="$2" \
> '{\
> if ($1 ~ name) { \
> split($2, a, "/"); \
> printf("Name\t: %s-50\nDir\t: %-50s\nDesc\t:
> %-50s\nURL\t: %-50s\nDeps\t: %s\n\n", $1, $2, $4, $10, $9); \
> }
> }' ${INDEXDIR}${INDEXFILE}
Backslashes @ EOL for embedded awk(1) code look ugly and can easily be
dropped.
./danfe
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"