Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
I have been trying for the longest time to get sed to find the EOL. I just wanted to append some data to the end of every line of a file but I can never seem to get SED to understand the end of a line. Does the period dollar sign mean end of line in DOS?
This works for me: sed /$/hi/
Did you check your line endings, as described in the thread you replied to? I'm not sure what line endings my test file has.
Why not just use the character class [[:space:]]?
echo "line " | sed 's/[[:space:]]*$//g'
This will remove any and all spaces up to the EOL.