I didn't realize you could call vi in a script like that and execute sed from there - I always sed the file and output to a temp file, and then read back in to the original... this is much cleaner.
Reputation Points: 13
Solved Threads: 9
Junior Poster in Training
Offline 58 posts
since Apr 2008