Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # How to figure out the length of a strign in bash?
- #expr length
- expr length "string" #This works on Ubuntu, but not on Mac
- #wc -c
- echo -n "string" | wc -c # -n not to output trailing newline in echo
Add Comment
Please, Sign In to add comment