[BUGS] search/replace - cr/lf (with joe)
jonathan michaels
jlm at caamora.com.au
Thu Jul 31 03:27:21 EST 2008
greetings,
andrew
i didn't think of doing it like that but bow that makes sence
On Thu, Jul 31, 2008 at 12:40:41AM +1000, Andrew wrote:
>
>
> On Thu, 31 Jul 2008, jonathan michaels wrote:
>
> > and wa wondering about how to replace teh combination of
> > carriage return and line feed symbols frm teh end of line and
>
> I've never used joe but you can just do it from the command line:
>
> tr -d \\r < file.csv > file_unix.csv
>
> That just strips all CRs so if you have any in your actual data you will
> want to use something a bit smarter but it will work for 99% of common
> data.
going onto another stream .. i'm editing the maintenance
reports to strip the ip address data to put into the
blockhosts.txt file to feed to pf for keeping bad
ipaddresses/attacks ets out side teh firewall.
this also requires a search and replace for cr/lf markers, does
anyone know how to do this with joe ?? please
regards appreciations and much thanks andrew
jonathan
--
================================================================
powered by ..
QNX, OS9 and freeBSD -- http://caamora com au/operating system
==== === appropriate solution in an inappropriate world === ====
More information about the BUGS
mailing list