November 05, 2004

bash substitution

#!/bin/bash
STRING=aaa.bbb
echo ${STRING/bbb/ccc}

result is aaa.ccc

Posted by pank at November 5, 2004 12:05 AM
Comments
Post a comment













Remember personal info?