JaoudeStudios.com

Open Source is the road ahead!
It is currently Thu Sep 09, 2010 1:18 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Batch converting windows files to linux using dos2linux
PostPosted: Tue Oct 06, 2009 11:56 am 
Offline
Site Admin
User avatar

Joined: Wed Jul 02, 2008 7:54 pm
Posts: 596
Location: Surrey
Convert php files from windows to linux. Especially useful when working on windows and copy & pasting in the putty terminal - svn thinks the commit comes from linux so does not remove the windows line breaks that the copy & paste has just inserted, resultingin ^M at the end of every line. Use commad below to remove windows line breaks...
Code:
> find *.php -exec dos2unix {} \;

_________________
JaoudeStudios.com :: Eddie Jaoude :: Geek by nature, Linux by choice
Forum JaoudeStudios - php, mysql, xhtml, css, javascript, jquery, svn subversion, linux, lamp, W3C
Online Agile Task board
Open Source is the road ahead!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group