On 29/7/13 at 03:27, b...@cruzio.com (Bruce Van Allen) wrote:
Substituting in for John's one-liner, but NOT reducing blank lines:
perl -pi.bak -e s~\015?\012|\015~\n~g
Yes, sorry—I should have been in bed when I posted that!
JD
--
This is the BBEdit Talk public discussion group. If you
On Monday, July 29, 2013 5:47:42 PM UTC-4, Doug McNutt wrote:
ftp://macnauchtan.com/Software/LineEnds
Reminds me, going in a slightly off point direction, that Craig Stuart
Sapp wrote a unix-based utility called flip for normalizing ASCII CR-LF
endings across MS-DOS and Mac OS-9. It
for files of a particular line break type:
On 29/7/13 at 21:06, rar...@banet.net (Robert A. Rosenberg) wrote:
One warning. If you want to change CR to LF (as in this suggestion),
you have to watch out for the CR+LF Line ending since just changing CR
to LF will make this LF+LF
At 14:53 -0700 07/28/2013, Steve Hodgson wrote:
Given a folder of text files is it possible to search which one are of a
particular line break type - say Mac Classic (CR)?
Not specifically; may I ask what your objective is?
Regards,
Patrick Woolsey
==
Bare Bones Software, Inc.
I've discovered what appears to be problem with the scriptogr.am service
not displaying text files formated with CR line endings.
Although I have fixed the individual instances where I first noticed this I
would like to be able to check a largish number of files for similar
problems. For the
On 28/7/13 at 22:53, st...@shodgson.org.uk (Steve Hodgson) wrote:
Given a folder of text files is it possible to search which one
are of a particular line break type - say Mac Classic (CR)?
If your directory is “~/temp/textfiles/”, run this script in
Terminal to change carriage return to
Thanks for the advice John. I'll file it away for future reference and use.
The text factory appoach works well too. Especially if I use Change Line
Endings rather than Normalize Line Breaks :-)
Cheers,
Steve
On Monday, 29 July 2013 18:38:17 UTC+1, John Delacour wrote:
On 28/7/13 at 22:53,
At 18:38 +0100 on 07/29/2013, John Delacour wrote about Re: Searching
for files of a particular line break type:
On 28/7/13 at 22:53, st...@shodgson.org.uk (Steve Hodgson) wrote:
Given a folder of text files is it possible to search which one are
of a particular line break type - say Mac
ftp://macnauchtan.com/Software/LineEnds
Is a link to an older Applescript scheme, with a bit of C code, that allows
for a quick study of existing files by dropping their icons onto a folder.
It's a bit old (2006) and I can't test with anything newer than OS 10.4.
It is not intended to handle
On 29/7/13 at 21:06, rar...@banet.net (Robert A. Rosenberg) wrote:
One warning. If you want to change CR to LF (as in this suggestion),
you have to watch out for the CR+LF Line ending since just changing CR
to LF will make this LF+LF.
This will change _any_ line ending to \n :
perl -pi.bak
Wouldn't that change multiple returns to a single return, as well, though?
--
On 7/30/13 at 12:28 AM +0100, John Delacour wrote in a message entitled
Re: Searching for files of a particular line break type:
On 29/7/13 at 21:06, rar...@banet.net (Robert A. Rosenberg) wrote:
One
in a message
entitled Re: Searching for files of a particular line break type:
On 29/7/13 at 21:06, rar...@banet.net (Robert A. Rosenberg) wrote:
One warning. If you want to change CR to LF (as in this
suggestion), you have to watch out for the CR+LF Line ending since
just changing CR to LF will make
Given a folder of text files is it possible to search which one are of a
particular line break type - say Mac Classic (CR)?
Thanks,
Steve Hodgson
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
13 matches
Mail list logo