in reply to Re^5: Read in hostfile, modify, outputin thread Read in hostfile, modify, output
What? Works for me (it's just not atomic, as far as I can tell).
echo foo >foo echo bar >bar perl -e "rename(foo,bar)" [download]