Welcome to Ed's
Hope it helps you and me alike.
2009-08-28
Unix Bash: replace trailing / from string
a="dir/"
echo ${a%*/}
replace within string
a="awordb"
echo ${a//word/dog}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment