2013. 11. 18. 11:15
#!/bin/bash
target="Izlovezangelazbaby"
#replace other word
output="${target/z/a}"
#output="${target/z/}"
#replaced stirng echo
echo $target | sed "s/z/ /g"
echo $output
'Programming > Bash shell' 카테고리의 다른 글
check wheter mySQL is running in bash shell (0) | 2013.11.20 |
---|---|
check if mysql database exists in bash shell (0) | 2013.11.20 |
Using shell script to control in mySQL (0) | 2013.11.19 |
optional parameter expansions in bash shell (0) | 2013.11.19 |
Bash shell script to swap two number (0) | 2013.11.12 |