Date: Tue, 12 Feb 2002 19:42:56 +0100 From: F.Xavier Noria <fxn@isoco.com> To: Per olof Ljungmark <peo@intersonic.se> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Off topic - Utility or shell script needed (sed or perl?) Message-ID: <20020212194256.26254e44.fxn@isoco.com> In-Reply-To: <200202121815.g1CIFbU97380@dns2.s.bonet.se> References: <200202121815.g1CIFbU97380@dns2.s.bonet.se>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 12 Feb 2002 19:22:05 +0100 Per olof Ljungmark <peo@intersonic.se> wrote: : I need a utlility or script to take out a complicated sequence of characters : from several hendred text files. : : The characters includes <>?/()= and CR-LF, but are all ASCII. If I understand correctly what needs to be done this would serve: $ perl -pi -e 'tr,<>?/()=\015\012,,d' <file> The file would be modified in place, if you'd want a backup of each one use $ perl -pi.bak -e 'tr,<>?/()=\015\012,,d' <file> instead. -- fxn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020212194256.26254e44.fxn>