반응형
# if cut -d: -f1 /etc/passwd | grep galaxy; then echo "galaxy user exist"; else useradd galaxy; fi
반응형
'Lang_Development > BASH' 카테고리의 다른 글
[BASH] How to cut the last field from a shell string (0) | 2013.12.09 |
---|---|
[BASH] /bin/bash^M: bad interpreter: No such file or directory (0) | 2013.08.01 |
[sed] sed에서 shell 명령어 사용 (0) | 2013.04.22 |
숫자, 문자를 순차적으로 출력 (0) | 2012.12.30 |
프롬프트에서 while, for등 직접 실행 (0) | 2012.07.23 |
최근댓글