Grep / Bash Expert

This project was successfully completed by linuxfreak1985 for $45 USD in a day.

Get free quotes for a project like this
Employer working
Completed by:
Skills Required
Project Budget
$30 - $250 USD
Completed In
1 day
Total Bids
Project Description

Here's the need.

I need a bash script that allows me to enter the following information:
1. Directory Path To Search:
2. File Extensions To Limit Search (comma separated): [php,js,ini,css]
3. String to Find:
4. String to Replace With:
5. Recursive y/n [y]
Being Replace with the following parameters: (echo above answers for confirmation)

* Each of the above 1,2,3,4 are required entries
* Default answers will be listed in [ ] as indicated above.

Each answer syntax must be tested
Search cannot begin until these tests are met

---> 1. directory path must be tested to exist
---> 2. no spaces or special characters except comma should exist. test to see if separated by a comma
---> 3. strings with special characters must be escaped ie; mystring.test-result will fail if not escaped properly
---> 4. same as 3

* Do not waste time re-cursing .svn directories as we cannot change anything in there anyway.

* Each successful replacement must be echo'd to the screen followed by return \n.

That is the job.

Please only bid if you have expertise in this area.



Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online