Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Bug Reports » Frequent file juggling woes (Files switched between releases)
Re: Frequent file juggling woes [message #7088 is a reply to message #6849] Sat, 11 November 2017 10:50 Go to previous messageGo to previous message
apmuthu
Messages: 30
Registered: April 2017
Location: Chennai Singapore
Member
There are many files that have Unix line endings ("\n") whilst there are a substantial number of files that have DOS line endings ("\r\n") as well. To synch it all to have just Unix line endings except for the BAT files needed for Windows would be appropriate.

This can be achieved using the bash oneliner:
find ./ -type f -name "*.php" -o -name "*.css" -o -name "*.js" -o -name "*.txt" -o -name "*.inc" -o -name "*.sql"  | xargs dos2unix


Some Linux installs may need a trailing ' -U' like:
find ./ -type f -name "*.php" -o -name "*.css" -o -name "*.js" -o -name "*.txt" -o -name "*.inc" -o -name "*.sql"  | xargs dos2unix -U

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: where2indexedArray failure
Next Topic: Cannot delete audit data
Goto Forum:
  


Current Time: Thu Dec 12 09:55:18 EST 2024

Total time taken to generate the page: 0.01250 seconds