sed Utility를 사용안해본사람은 있어도 한번만 사용한 사람은 없다 전해지는 전설의 레전드
Directory Exists? $ cat directory_ex.sh #!/bin/bash test_dir_exist(){ set -e if [ -e "/home/jayleekr/workspace/00_codes/05_info_archive" ];then echo "DIR Exist" exit 1 ...
And $ cat and_or.sh #!/bin/bash test_and_or(){ TEST="11" TEST2="22" if [ "$TEST" == "11" ] && [ "$TEST2" == "22" ] ;then echo "String Exist by And" fi if [ "$...
for $ cat for.sh #!/bin/bash LISTS=("a" "b" "c") # Don't forget Brace! echo ${LISTS[0]} echo ${LISTS[1]} echo ${LISTS[2]} # Don't forget Brace! for item in ${LISTS[@]} do echo $item done $...
Bash Get Ip address?
Bash set utility?
Comments powered by Disqus.