I\'ve copied a file from HDFS into my local file system (all on RH linux). However, after the copy, if I cat the file, I see the following:
cat
[me@ac12
You can use this sed to add a newline after last line:
sed
sed -i.bak $'$s/$/\\n/' file_copy
EDIT:
Or else use (thanks to @JonathanLeffler):
echo '' >> file_copy