티스토리 뷰
s=$(date +%s)
sleep 3s
e=$(date +%s)
diff=`expr ${e} - ${s}`
if [ ${diff} -lt 30 ]; then
echo $diff
exit 1
fi
https://qastack.kr/ubuntu/892604/meaning-of-exit-0-exit-1-and-exit-2-in-a-bash-script
bash 스크립트에서 종료 0, 종료 1 및 종료 2의 의미
qastack.kr
Less than operator '<' in if statement results in 'No such file or directory'
Sure this is a simple one - still learning my way around sh scripts. I've got:- if [ $3 < 480 ]; then blah blah command else blah blah command2 fi $3 is a passed variable, again an integer.
stackoverflow.com
https://stackoverflow.com/questions/8385627/subtract-two-variables-in-bash
Subtract two variables in Bash
I have the script below to subtract the counts of files between two directories but the COUNT= expression does not work. What is the correct syntax? #!/usr/bin/env bash FIRSTV=`ls -1 | wc -l` cd ..
stackoverflow.com
'공부' 카테고리의 다른 글
[Spring] return NOT_FOUND 404 (0) | 2020.12.23 |
---|---|
printf("%.08f\n", 1.23); (0) | 2020.12.23 |
[Java] DAO & DTO (0) | 2020.12.13 |
[Hive] ORDER BY, DISTRIBUT BY SORT BY, CLUSTER BY (0) | 2020.12.13 |
[Python] thread (0) | 2020.12.13 |
- Total
- Today
- Yesterday
- 어떻게 능력을 보여줄 것인가?
- 팔로워 수 세기
- 책그림
- 클루지
- wlw
- 개리마커스
- Bot
- 테슬라 레퍼럴 적용 확인
- 할인
- follower
- 테슬라 크레딧 사용
- 테슬라
- 메디파크 내과 전문의 의학박사 김영수
- 테슬라 리퍼럴 코드 혜택
- 모델 Y 레퍼럴
- Kluge
- 테슬라 리퍼럴 코드 생성
- COUNT
- 유투브
- 테슬라 리퍼럴 코드
- 테슬라 레퍼럴 코드 확인
- 테슬라 추천
- 테슬라 레퍼럴
- 레퍼럴
- 모델y
- 연애학개론
- 인스타그램
- 김달
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |