bash에서 블록 빠져나가기 트릭 bash로 스크립트를 짜다가 특정 명령이 실패하면 나머지 부분을 스킵해야할 일이 생겼다. bash에는 goto가 없다. 따라서 특정 위치로 점프하기 위해서는 case나 while 등을 써서 이를 흉내내줘야 한다. while로 조잡하게 구현했다. while true do command if [ $? -ne 0 ];then break fi # command가 실패인 경우 나.. 내밥줄/프로그래밍 2013.05.29
[펌]All about Variables in Bash | Shell Scripting This section we will describe the following: • Variable assignment• Variable substitution• Built-in shell variables• Other shell variablesVariable AssignmentVariable names consist of any number of letters, digits, or underscores. Upper- and lowercase letters are distinct, and names may not start with a digit. Variables are assigned values using the = op.. 내밥줄/프로그래밍 2013.01.23