I am trying to check if a file has already EOF character is so do nothing, if not then add a new line characer to the end of the file in shell script.
currently i am using :
sed -i -e '$a\' file
getting error message : sed: Not a recognized flag: i