If I wanted to change the sed_replace.sh below so I did not have to hardcode the filename, but could issue the filename with a wildard to act on in the for part of the script, would you guys know how i could change my current script?
=========================================== current sed_replace.sh
1 #! /bin/bash
2 for text in *menu4_it_sware_videogalleries_*.php; do
3 mv $text $text.old
4 sed 's/\.\.\/\.\.\///g' $text.old > $text
5 rm -f $text.old
So, instead of just running....
which would find only files of type *menu4_it_sware_videogalleries_*.php,
The script could "somehow be modified" to let you place a parameter after the script name and it will act on that in the for statement of the script...