$file_name, not file_name
ditto for the other variables
use "sed -e" not just "sed"
and change $file.new to ${file}.new just to be safe
Edit: So many problems, so little text. ;-)
Last edited by masijade; Nov 9th, 2009 at 3:20 am.
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
Offline 4,043 posts
since Feb 2006