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, [email protected] <javascript:> (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 linefeed in all the files > it contains: > > cd; cd temp/textfiles; perl -pi.bak -e "s~\r~\n~g" * > > The script will create a backup of the original. > > JD > > > -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
