I gang

Write a windows shell bat file that will loop through all the HTML files in directories and search and replace strings

I need a simple script that will:

1) loop through all the html files in a directory and it's subdirectories

2) Open each file and find a string using regex: e.g. style="(width): ([0-9]+px); (height): ([0-9]+px);"

3) replace the string with $1="$2" $3="$4" (should look like width="123px" height="123px"

4) Close and save the file.

I need to make several different search and replace operations, so the search and replace operation needs to happen a few times in each file.

Hopefully the script will be simple enough to read so that I can tweak it as needed.

Would like the script very soon.

Færdigheder: Shell Script

Se mere: windows shell rename file, input excel generate html search replace, perl search replace files script, script will search extract strings xml files, script search replace files linux, perl search replace html tags, linux search replace files subdirectories, search replace string inside files linux script, search replace url html, perl search replace html, perl search replace script html tags, search replace hex files, perl search replace html tag, perl script search replace html tags, search replace text files

Om arbejdsgiveren:
( 9 bedømmelser ) Fairbanks, United States

Projekt-ID: #12520818

Tildelt til:


A proposal has not yet been provided

$25 USD på 1 dag
(0 bedømmelser)