본문 바로가기

Sysops Notepad

검색하기
Sysops Notepad
프로필사진 sysops

  • 분류 전체보기 (188)
    • TIP (4)
    • IT (8)
    • 업무 (176)
      • sys (63)
      • dev (21)
      • etc (92)
    • 주식일기 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/12   »
일 월 화 수 목 금 토
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
  • 디렉토리
  • 서울시민카드
  • yum
  • Elasticsearch
  • K8S
  • RHEL
  • GPU
  • Python
  • syslog
  • Audit Log
  • Linux
  • 크롬
  • GNOME
  • Kubernetes
  • Shell
  • log
  • centos 7.5
  • CentOS
  • PostgreSQL
  • 파이썬
  • Elk
  • C
  • Chrome
  • rsyslog
  • 빅데이터
  • audit
  • docker
  • JSON
  • zabbix
  • bash
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록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
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바