If I recall the origional request, it was to remove some lines at the beginning and end of the rile, and put it in a .txt file. I don't remember if the origional file was wanted as a backup, but I normaly keep it around untill I am sure the script is producing what I want, and then go back and delete it. I like to have a backup in case things go wrong...Maybe I didn't pay close enough attention, but it looked like you guys were using 'head' and 'tail' to output to a *.txt file leaving the original intact.
Yes, the end result IS the important thing. However, not saying exactly what you want to do leads to misinterpretation.
Bill
I normaly read remove lines from a file as produce a new file with the lines removed, and keep the origional file as a backup, especialy when doing it as a batch job. Unless space considerations demand otherwise, this is usualy the best way. But then, I have been know to keep the last 3 or 4 revisions of a config file, or even use cvs to keep track of changes...
Mikkel --
Do not meddle in the affairs of dragons, for you are crunchy and taste good with Ketchup!
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________
