Possible Duplicate:
How can I make iconv replace the input file with the converted output?
I'm writing a script to change the content of my hosts
file but I got stuck on the head
output redirection.
If I do head -n -1 hosts >hosts
my hosts
file will result empty and yes, it has more than 1 line.