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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:11:26+00:00 2026-06-02T02:11:26+00:00

I am having trouble with Windows files running as part of a shell script

  • 0

I am having trouble with Windows files running as part of a shell script on a Linux box and I was wondering if it is possible to “convert” a Windows created file to a Linux one using Java or possibly a Linux command?

For example:

If I upload a CSV file created in Windows, then on the server using nano I can see the file was saved in DOS Format. I can toggle between DOS and Linux format using M-D and save it as a Linux file.

My question is whether it is possible to achieve this via Java (<-preference) or through a Linux command?

I have tried stripping carriage returns sed -i 's/{ctrl-v}{ctrl-m}//g' [file] but this does not help with the issue.

  • 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-06-02T02:11:27+00:00Added an answer on June 2, 2026 at 2:11 am

    dos2unix and unix2dos unix commands, from the dos2unix package.

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

Sidebar

Related Questions

Need Windows .bat file tech support. I am having trouble running Win 7 bat
I am having trouble running a Java program with Windows Powershell 2.0. Any help
I'm having trouble getting the autocomplete box in System.Windows.Controls.Input working as I wish. When
I am having trouble getting the Bake console. I am on Windows running XAMPP.
I'm having trouble with a particular version of Pocket IE running under Windows Mobile
i'm having trouble setting up vhosts on windows 7. i'm running wamp. my host
I'm having trouble with Windows Authentication in IIS7 and really in despair now. We
I'm having trouble with making a subdomain to my Windows computer while using AJP
I'm running Eclipse (versions 3.6 and 3.5) on Ubuntu and I'm having trouble installing
I am having trouble searching a large directory of files for a string. The

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.