Date: Mon, 12 Nov 2001 14:05:28 +0200 From: Peter Pentchev <roam@ringlet.net> To: Ying-Chieh Liao <ijliao@csie.nctu.edu.tw> Cc: Pete Fritchman <petef@databits.net>, Michael McGoldrick <mmcgoldrick@linuxdriven.net>, ports@FreeBSD.ORG Subject: Re: mpeg_lib-1.3.1 port Message-ID: <20011112140528.C549@straylight.oblivion.bg> In-Reply-To: <20011109225721.A12495@databits.net>; from petef@databits.net on Fri, Nov 09, 2001 at 10:57:21PM -0500 References: <20011109192517.A29027@linuxdriven.net> <20011110085307.A45272@terry.dragon2.net> <20011109225721.A12495@databits.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 09, 2001 at 10:57:21PM -0500, Pete Fritchman wrote: > ++ 10/11/01 08:53 +0800 - Ying-Chieh Liao: > | I've tried this : > | > | post-patch: > | @(cd ${WRKSRC} ; \ > | ${GREP} -r "<malloc.h>" * | ${AWK} -F: "{ print $1 }" | \ > | xargs ${PERL} -pi -e "s/<malloc.h>/<stdlib.h>/") > | > | but failed , it seems that "awk -F:" didnt work > > entropy [114] % grep -r "malloc.h" * | awk -F: "{ print $1 }" > foo4:malloc.h > entropy [115] % grep -r "malloc.h" * | awk -F: '{ print $1 }' > foo4 > entropy [116] % > > You need to use single quotes around the {print $1}. And just as a side note, grep(1) has a nice -l option :) G'luck, Peter -- I am the meaning of this sentence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011112140528.C549>