I have a lot of script files that were created by Extract in a dir that no longer exists. Now that I have to run these scripts they 'all' have to be changed. I'm looking for a way to do a 'mass' change if possible.
So far, I've dumped all of the script file names to a file and sorted them to eliminate duplicates. Is there some way to have a script read that file as input to the sed command?
Actually the line with the "for" statement should read like this.
$> for i in `cat filename`
Because HOlli has placed the names of the files in file. If HOlli was just doing every file in a directory, the first example would work fine.
Hopefully HOlli has put them in one column left justified.
The only other thing that might be questionable is that the script puts a new copy of the file in /tmp instead of replacing the original which is okay if you want to keep the old scripts.
Actually the referenced link is MY handywork. Thanks for noticing!!