Monthly Archives: May 2013

bash string manipulation

These quick string manipulations might save you some time. This works with bash starting from version 4.0 Function Input String s Bash Output String Show ABC123abc123 ${s} ABC123abc123 Show UPPERCASE ABC123abc123 ${s^^} ABC123ABC123 Show lowercase ABC123abc123 ${s,,} abc123abc123 Show length … Continue reading

Posted in bash, linux, macosx | Tagged , , , , | Leave a comment