LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-21-2019, 03:19 PM   #1
shnguyen
LQ Newbie
 
Registered: May 2019
Posts: 2

Rep: Reputation: Disabled
how to convert a file in binary mode to a file in text mode?


how to convert a file in binary mode to a file in text mode, from windows OS? Thanks
 
Old 05-21-2019, 03:22 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Hi shnguyen and welcome to LQ.

You will have to give us more information to work with. What is the file you want to convert, and why?
 
Old 05-21-2019, 06:10 PM   #3
shnguyen
LQ Newbie
 
Registered: May 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi,

I need to post a question in order to view others. I'm new join. I found the info of my question in previous post (ihoward92). Thank you.
 
Old 05-21-2019, 06:16 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by shnguyen View Post
Hi,

I need to post a question in order to view others. I'm new join. I found the info of my question in previous post (ihoward92). Thank you.
Out of interest, what makes you think that? You don't even need to be a member to view posts.

Can you please post a link to ihoward92's solution that you found?
 
Old 05-21-2019, 07:49 PM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
There's $(dos2unix) and $(unix2dos) if you're talking about the different carriage return styles. \n vs \n\r vs \r or whatever mac was/is. 0x0a versus 0x0a + 0x0d versus 0x0d at the end of each line of text. Only used linux \n for a very long time now so not soo sure about those other things anymore. Doing a binary transfer means that it retains the original file byte for byte and does not convert carriage returns or other conversions like it would in ascii mode. (or ebcdic mode / mainframe).

Last edited by Shadow_7; 05-21-2019 at 07:51 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert binary file into text file in linux ihoward92 Linux - Newbie 10 02-24-2014 03:15 PM
c++: text-mode vs binary mode hydraMax Programming 8 03-07-2013 08:45 AM
convert text mode linux OS to graphical mode csaju Linux - Newbie 1 10-09-2006 05:18 AM
How to convert binary text file from Windows marie@dk Linux - Software 2 10-12-2005 03:17 AM
convert text file to binary excel file ust Linux - General 2 11-23-2004 02:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration