Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- Chrome
- bash
- GNOME
- Kubernetes
- yum
- 서울시민카드
- syslog
- centos 7.5
- PostgreSQL
- audit
- C
- JSON
- docker
- Python
- Linux
- Elasticsearch
- zabbix
- Shell
- log
- rsyslog
- 크롬
- 빅데이터
- 디렉토리
- K8S
- 파이썬
- CentOS
- RHEL
- GPU
- Elk
- Audit Log
Archives
- Today
- Total
목록FOR (1)
Sysops Notepad
[bash] for문 사용법
1. 1~ 10까지 출력for i in {1..5}do echo "Welcome $i times"done 2. 1 3 5 출력for i in {1..5..2}do echo "Welcome $i times"done 3. 파라미터값 입력 받아 반복#!bin/bash if [ "$#" -lt 1 ]; then ## 파라미터가 없으면 종료 echo "$# is Illegal number of parameters." echo "Usage: $0 [options]" exit 1fiargs=("$@") ## for loop 를 파라미터 갯수만큼 돌리기 위해 three-parameter loop control 사용for (( c=0; c
업무/dev
2019. 2. 11. 20:38