LinuxQuestions.org
Review your favorite Linux distribution.
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 02-11-2015, 05:05 AM   #1
vigneswaraprabhu
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Rep: Reputation: Disabled
Question converting multiple gedit files to windows versions


i have a few score of files (>50) in fasta format. these work fine in linux os
but i have to send these to a collegue who uses windows. and these files don't open properly in notepad or wordpad. executing save as to windows format does the trick

but i don't want to manually convert all of them

is ther a way i can accomplish conversion of multiple files and saving them in a format of my choosing using say terminal
 
Old 02-11-2015, 05:09 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,133

Rep: Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273
there is a command unix2dos, but he can try to use notepad++ or other editors under windows and they will open them without problems.
 
Old 02-11-2015, 09:12 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,848

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
See the wikipedia article on unix2dos - it explains the problem and offers several answers. I simply use sed in a loop over the needed files.
Note the program can be called almost anything - I see tofrodos on Fedora.
 
  


Reply

Tags
gedit, linux, terminal, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Converting Multiple VMDK (Virtual Machine Disk) files into one LXer Syndicated Linux News 0 04-25-2012 03:00 AM
[SOLVED] Will Older Versions of GNOME Work with Gedit 3? mrm5102 Linux - Software 7 01-05-2012 12:32 PM
LXer: Gedit Plugin To Search And Replace In Multiple Files LXer Syndicated Linux News 0 10-08-2010 06:40 PM
[SOLVED] GEdit: text-files' compatibility with Windows - settings question GrubbySeismic Linux - Desktop 3 06-11-2010 01:13 PM
converting a doc/ppt Windows files in html files under linux env agrosu Programming 7 02-23-2006 04:07 PM


All times are GMT -5. The time now is 04:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration