Originally posted by Groovy:
set AE_NFO=filename.nfo
echo %AE_NFO% | sed "s/\.nfo//g" >temp.txt
set /p AE_FILENAME=< temp.txt
haha hate replying to my own posts but i figured out how to fix it and WHY
DOS sed is different. The version with XP just does it wrong. You can download
better versions of sed though which i didn't want to do and because I figured
out how to get sed to work like i needed.
simply add a [space character]$ like the following causes sed to strip (or suppress)
that character from being sent to output at the EOF.
echo %AE_NFO% | sed "s/\.nfo $//g" >temp.txt
my script works great now on both OSX and MS-DOS/XP boxes
