Project Detail

Recusrive dos2unix exclude images  

Recusrive dos2unix exclude images is project number 416411
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: pentium10

Budget: $30-250

Created: 04/10/2009 at 3:21 EDT

Bid Count: 2

Average Bid:
N/A

04/14/2009 at 3:21 EDT

Project Creator: derrickr
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (34 reviews)

Bid On This Project
 

Description

I've recently been caught out by my web server complaining of an internal server error 500, and discovered that is was due to the Windows CR/LF file format being used against the required Linux LF file format.

This was totally my fault as I had the wrong setting on Dreamweaver.

I've now managed to get my site running again by manually using the dos2unix utility, but don't want to have to do this to over 16,000 files.

I now need to ensure the rest of the files are in the required LF format, and am looking for a recursive method to apply the dos2unix command.

However, I've carried out a manual trial run on specific files within a directory and noticed that images, particularly .png, become corrupt.

My site has a lot of images, so I'm now looking for a method to apply the dos2unix command recursively from the root of the web site to all its sub directories, but excluding all images.

I've googled a few sites and have found:

find . -type f -exec dos2unix {} \;

find . -type f -print -exec dos2unix \{\} \;


However, I'm still a relative newbie on Linux, and don't have the confidence or understanding to apply the above. Also, it seems apparent that these above example statements have no exclusion for images.

I therefore need someone to help me with the above by either sending me the correct command line statement, or an alternative method.



btw - since it's Easter, I may not be able to get back to this until next week, if I don't get a fast response

Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

Bids are hidden by the project creator. Log in as the project creator or as one of the bidders to view bids. You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


    Bid on this Project