Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6983419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:24:59+00:00 2026-05-27T18:24:59+00:00

I have a .txt (Mac OS X Snow Leopard) file that has a lot

  • 0

I have a .txt (Mac OS X Snow Leopard) file that has a lot of text. At the end of a paragraph, there is a hard return that moves the next paragraph onto another line. This is causing some issues with what I am wanting to do to get the content into my db, so I am wondering if there is anyway I can remove the hard returns? Is there some sort of script I can run? I am really hoping I don’t have to go through and manually take the hard returns out.

To recap, here is what it looks like now:

This is some text. Text is what this is.
And then this is the next paragraph that is on a different line.

And this is what I would like to get to:

This is some text. Text is what this is. And then this is the next paragraph that is on a different line.

For all several thousand lines in my .txt file.

Thanks!

EDIT:

The text I am dealing with in my txt file is actually HTML:

<a href="/link/link/1"> <span class="text">1 </span> THis is where my text is</a><br/>

And when I run the cat command in terminal like mentioned below, only the first is there. Everything else is missing…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:24:59+00:00Added an answer on May 27, 2026 at 6:24 pm

    I normally just use an editor with good Regular Expression support. TextWrangler is great.

    An end of line in TextWrangler is \r, so to remove it, just search for \r and replace it with a space. TBH, I always wondered how it handles CRLF-encoded files, but somehow it works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a file a.txt in Mac OS, which has write perms to everybody:
I have a txt file that is generated on the server and contains newlines.
I have a .txt file that contains a list of names and some numbers.
I have a .txt file on my Desktop called URLs.txt that contains a list
I have the following code that reads mac addresses from a file and tries
I have this problem that my .php file is presented as clear text in
I have a text file full of records (output.txt) and I want to sort
I have a php function I wrote that will take a text file and
Is there a way to access a text file file.txt from my desktop and
i have a .txt file containing data like: He: 22.1 Ar: 21.1 K: 1.22

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.