Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Strip a Carriage-Return from a string/variable



Hi
print ${somevar//[^[:alnum:]]/_}   # replace all non-alphanumerics with _

But how to delete just a trailing or not carriage return?

-- 
zzapper

http://www.successtheory.com/tips/cygwintips.php   (in progress)



Messages sorted by: Reverse Date, Date, Thread, Author