Hi all,
I need to run a number of scripts which have a certain phrase on them so I have identified these by;
grep -l 100 *script | sort -u
Normally I could just run something along the lines of;
for i in `grep -l 100 *script | sort -u`; do ./${i}; done
However before I run each of the scripts I need to change a variable within them which is random.
Each script uses a "-e" flag followed by a digit (could be single or double) e.g. 1-99.
What I was thinking was using sed to replace "-e **" with "-e 365" throughout all the scripts is this possible?
Thanks!