How-To: Bash Parameter Expansion and String Manipulation
Posted by chantra on 19th February 2013
Last time we saw how bash can help us in handling default values out of the box using parameter expansion. This time we will see how basic string operations (nonetheless common and useful) can also be achieved using bash.
There is many ways to do string manipulation with bash, like finding a filename extension using expr, separating the directory part from a filename using dirname and basename…. or even more sophisticated ones based on regex, sed….
Why using a sledgehammer to crack a nut when you could use bash builtin functionalities!
Tags: bash, shell, system, tools
Posted in Administration, HowTo, Softwares, System | No Comments »


