Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
samgd
· 10y ago · 0 comments
sed 's/\s*$//g'
Comments
[–]
joshka
10y ago
Funnily, that doesn't work as expected on OS X due to a rather old version of sed installed by default that doesn't support \s. Try the following instead:
sed 's/[[:blank:]]*$//g'