On 28/7/13 at 22:53, [email protected] (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].


Reply via email to