/dev/irouble
my tech ramblings, some tips and tricks, but mostly just a place for me to b1tch
Thursday, February 16, 2012
bash remove trailing slash
STRING=${STRING%/}
Deletes shortest match of a substring (in this case a forward slash) from back of STRING.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment