예정된 시간을 위하여

  • 홈
  • 태그
  • 방명록

bash 2

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
이전
1
다음
더보기
프로필사진

예정된 시간을 위하여

  • 분류 전체보기 (93)
    • 옛이야기 (1)
    • 내밥줄 (71)
      • 프로그래밍 (21)
      • 개발 (6)
      • VoIP (10)
      • 리눅스 (33)
    • 게임 (8)
    • 기타 (9)
    • 삽질 (2)
    • 보안 (1)

Tag

Linux, 업데이트, Asterisk, VI, 우분투, VIM, 설치, 리눅스, bash, SVN,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/08   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바