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 4065388
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:58:36+00:00 2026-05-20T15:58:36+00:00

I have several hundred GB of data that I need to paste together using

  • 0

I have several hundred GB of data that I need to paste together using the unix paste utility in Cygwin, but it won’t work properly if there are windows EOL characters in the files. The data may or may not have windows EOL characters, and I don’t want to spend the time running dos2unix if I don’t have to.

So my question is, in Cygwin, how can I figure out whether these files have windows EOL CRLF characters?

I’ve tried creating some test data and running

sed -r 's/\r\n//' testdata.txt

But that appears to match regardless of whether dos2unix has been run or not.

Thanks.

  • 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-20T15:58:37+00:00Added an answer on May 20, 2026 at 3:58 pm

    The file(1) utility knows the difference:

    $ file * | grep ASCII
    2:                                       ASCII text
    3:                                       ASCII English text
    a:                                       ASCII C program text
    blah:                                    ASCII Java program text
    foo.js:                                  ASCII C++ program text
    openssh_5.5p1-4ubuntu5.dsc:              ASCII text, with very long lines
    windows:                                 ASCII text, with CRLF line terminators
    

    file(1) has been optimized to try to read as little of a file as possible, so you may be lucky and drastically reduce the amount of disk IO you need to perform when finding and fixing the CRLF terminators.

    Note that some cases of CRLF should stay in place: captures of SMTP will use CRLF. But that’s up to you. 🙂

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

Sidebar

Related Questions

I have a database with several hundred tables imported from a third source. Using
I have a crystal report that gets ran several hundred times from a C#
I have an application that is used on several hundred computers across the company
I have two sources: an xml-file containing definitions of several hundred data structures, basically
I have a couple hundred text files that have data that looks like: Capo:
I have corpus of several hundred of documents and I am using NLTK PlaintextCorpusReader
I'm writing an app (in iOS 5 using ARC!) that presents several hundred objects
I have several hundred files in a non-flat directory structure. My Makefile lists each
I have a list on SharePoint with several hundred items in it. I also
I have an company asp.net website with textboxes which may contain several hundred words.

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.