…or install `dos2unix`, which is a bit smarter than `tr` and also has
a Mac mode:
dos2unix -c mac your-file.txt
This will convert your-file.txt from <CR> to <LF> line endings, in
place. To convert all files in a folder (and nested folders), try:
find my-folder -type f -exec dos2unix -c mac '{}' \;
It's safe to run dos2unix on files that already have <LF> line endings;
it just skips them. Also dos2unix will detect binary files and cowardly
refuse to convert them.
Hope this helps.
-sam
On 13 Jul 2017, at 10:46 AM EDT, Rod Buchanan wrote:
Or 'tr' if you're a command-line junkie:
tr '\r' '\n' < in-file > out-file
On Jul 13, 2017, at 8:53 AM, Greg Raven <[email protected]> wrote:
There is also the app LineBreak.
On Wednesday, July 12, 2017 at 12:04:22 PM UTC-7, emeyer wrote:
I just found out I created a whooooole bunch of files using Legacy
Mac
OS linefeeds instead of Unix linefeeds. Is there a way to
mass-change
all of those at once, or do I have to literally open up a couple
hundred
files to click the dropdown to the right value and then save and
close?
--
Eric A. Meyer - http://meyerweb.com/ <http://meyerweb.com/>
--
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
<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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/bbedit
<https://groups.google.com/group/bbedit>.
--
Rod Buchanan
Kelly Supply Company
1004 W Oklahoma Ave
Grand Island, NE 68802-1328
308 382-8764 x1120
--
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].
Visit this group at https://groups.google.com/group/bbedit.
--
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].
Visit this group at https://groups.google.com/group/bbedit.