4 # sed -E "s/SC.(TableColumn|TableView)/EO.\1/g" $x > tmpfile
6 # expect 2 args, first is the one to find, second to replace
9 echo "You must pass 2 arguments. The first to 'find' and the second to 'replace'"
13 # assign the values for clarity
18 echo "Searching for '$FIND' and will replace with '$REPLACE'"
20 echo "Starting to search and replace..."
21 for x in `find ./* -name '*.js'`
23 sed -E "s/$FIND/$REPLACE/g" $x > tmpfile