Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

CVS - Control-M character in source files import from Windows XP to Linux platform

Posted on 2005-03-07
2
Medium Priority
?
249 Views
Last Modified: 2013-12-16
Hi y'all,

Got a little problem. Basically I've got a quite a few web-based scripts (php, perl, html, javascript, etc..) that I've been just keeping in a source directory on my Windows XP box, but now I want to transfer them all to my Linux box and use CVS to keep control of them. I also want to use the $Revision$ and $Log$ tags in my source.

Problem is that when I transfer the files from XP to Linux (I actually just place them in a samba shared directory) then import them into cvs, I also get a Control-M (^M) character at the end of each line(I know this is effectively a carriage return.), although I get the $Revision$ and $Log$ correctly translated.

I can get around the Control-M characters by importing using the "-kb" option, however when I do this the $Revision$ and $Log$ tags aren't translated.

Anyone know a way I can have both? Or would I need to write some c/perl thang to sort this out?

Version info... CVS 1.11.17, Linux Fedora Core 3

Thank you,


Noel
0
Comment
Question by:Atlantisstorm
2 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 375 total points
ID: 13481149
After plaing the files on the Linux box use dos2unix to convert the windows line terminators (carriage-return/new-line) into just a new-line. Then do the import into CVS.
0
 

Author Comment

by:Atlantisstorm
ID: 13481467
Thank you jlevie, exactly what I was looking for (I'd forgotten dos2unix existed - been a loooong time:))
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month10 days, 14 hours left to enroll

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question