[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: control-M characters that are NOT end of line characters

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Thu, 5 Jan 2012 03:33:12 +0200

David Chapman wrote on Wed, Jan 04, 2012 at 16:11:27 -0800:
> #!/bin/bash -f
> sed 's/\r//g' $1 > tmpfile
>
> Rather than use a special character, I used the shell's escape sequence.

No you didn't. The single quotes protect the \ and it is passed
literally to sed's argv[1].

Daniel
(/bin/bash != /bin/sh)
Received on 2012-01-05 02:33:57 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.