LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-09-2003, 09:50 PM   #1
intolinux
LQ Newbie
 
Registered: Nov 2003
Location: Beijing, PRChina
Distribution: rh7/7.1/7.2/7.3/8/9/as3
Posts: 7

Rep: Reputation: 0
use vi to convert linux format to windows format


There is a text file in linux format, in vi, how to convert it into windows format.

:%s/$/..........................

thank you!
 
Old 12-10-2003, 02:54 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
2 answers:

If you use vim:
In command mode type: set ff=dos or from dos to linux: set ff=unix

If you use vi:
%s/$/\<ctrl-v>return/
The last part is a backslash followed by ctrl-v then the return key
 
Old 12-10-2003, 10:20 PM   #3
intolinux
LQ Newbie
 
Registered: Nov 2003
Location: Beijing, PRChina
Distribution: rh7/7.1/7.2/7.3/8/9/as3
Posts: 7

Original Poster
Rep: Reputation: 0
great! you are a real vi expert

I know all you said excpet the "backslash" in the second answer :)
 
  


Reply


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
linux program to convert rm (real player) audio files to mp3 format des-traction Linux - Software 2 03-31-2009 07:04 PM
How to convert .rm to other format? bamsesbilledbog Linux - Software 1 11-28-2005 04:47 PM
convert wmv video format to known by linux abd_bela Debian 2 07-08-2005 04:32 AM
convert windows' cdplayer.ini to linux format? SharpyWarpy Linux - General 2 04-26-2004 07:34 PM
Anyway to Convert RealAudio to Another Format LinuxGeek Linux - Software 3 07-28-2002 04:27 AM


All times are GMT -5. The time now is 06:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration