본문 바로가기 메뉴 바로가기

welcome!

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

welcome!

검색하기 폼
  • 전체보기 (231)
    • IT 저서 (20)
      • 가상 면접 사례로 배우는 대규모 시스템 설계 기초 (12)
      • 데이터 중심 애플리케이션 설계 (8)
    • Discrete mathmatics and Pro.. (41)
      • 1 논리 (14)
      • 2 기초적인 구조들 : 집합, 함수, 순열, 시그.. (3)
      • 3 알고리즘 (2)
      • 5 재귀와 귀납 (2)
      • 6, 8 경우의 수와 그 응용(dp) (7)
      • 9 관계 Relations (4)
      • 10 그래프 (1)
      • 11 트리 (6)
      • etc radom, samplings (1)
    • 알고리즘 문제 (7)
      • math (8)
      • implementation (17)
      • sort, search (5)
      • data structure (5)
      • Brute Force (4)
      • BFS (0)
      • DFS and Simillar (4)
      • DP (11)
      • graph (7)
      • Flow (1)
      • string (0)
      • 입사문제 (2)
    • 운영체제 (5)
      • 1 overview (0)
    • 네트워크 (12)
    • 데이터베이스 (3)
    • 컴퓨터구조 (0)
    • 개발이야기 (20)
      • 포트폴리오 (1)
      • Flutter (2)
      • Wpf (1)
    • 자유공간 (12)
    • Calculus (0)
    • IoT 과정 (39)
  • 방명록

전체 글 (231)
Branches and Logic Testing

.exrc => vi settingtabstop => tab indentationshiftwidth => shift movement ( shift move cmd "shift + ")number => line number/usr/bin/ex hard link with /usr/bin/vi, vi command mode 에서 : 뒤 명령어 wq, q! 등의 command는 ex 의 command 이다. branch and loop ... UNIX의 keywordfrom pre-ALGOL, loop syntax's history starts. ... the begin of Structured Programming Language. branch single (if), multiple (case) l..

IoT 과정 2017. 7. 6. 15:17
Shell Arithmetic

Creating Inter Variablesnumber=123.45 // type : local string integer counter=12 // type : local integer typeset -i total=32767 exort total // type : export integer integer minimum=-2147483648 // type : local integer Base10 and Otherstypeset -i int_num=10 //value string: 10 typeset -i2 bin_num=10 //value string: 2#1010 typeset -i8 oct_num=10 //value string: 8#12 typeset -i16 hex_num=10 //value st..

IoT 과정 2017. 7. 6. 11:06
Designing Program Output

Variable Attributes(typeset)typse -L10 var_nameortypeset -L10 var_name="value string" Attribute/typeset option/sampleLeft Justify -L "string " Right Justify -R " string" Lower Case -l "string" Upper Case -u "STRING" Display Formatted DataFormatted: print "$var" Unformatted: print $var Conversion: printf "%.10s" "$var" //built-in cmd인 print와 다르게 external cmd인 printf는 c언어의 printf와 같다. man printf 커..

IoT 과정 2017. 7. 6. 09:51
User Input

Readman read //read 메뉴얼 페이지 참조 Positional Parametersprog.sh arga argb argc // prog.sh $0, arga $1, argb $2, argc $3 Positional Parameters는 parent shell의 환경변수로 child shell에 넘어간다. 흥미로운 예$ set asd qwd asd zxc asf dg $ echo $1 asd $ echo $2 qwd $ echo $3 asd $ echo $4 zxc $ echo $5 asf $ echo $6 dg $ echo $* //parameter 1개로 넘어감 asd qwd asd zxc asf dg $ echo $@ //parameter 6개로 넘어감 asd qwd asd zxc asf..

IoT 과정 2017. 7. 5. 17:00
Variable

Variablesvariable="value string"variable을 설정시에 equal 기호 전 후로 공백을 넣으면 안된다. 공백은 쉘에서 메타캐릭터이다.variable의 이름은 숫자로 시작하면안된다.variable은 언더바 _ 의 특수기호만을 사용가능하다.variable 값은 shell process 메모리에 저장된다. (Local variable) 따라서 시스템을 껐다키면 사라진다.variable 값은 기본적 데이터 타입은 문자열string이다. 재밌는 예$ aster='*'$ echo $aster // -> $ echo * -> $ echo [files...]programs script test.sh xx.sh$ echo "$aster" // -> $ echo "*" * Variable Sc..

IoT 과정 2017. 7. 5. 14:46
Shell Scripting

Unix Shell Family treeThompson Shell 1971|_ Bourne (sh) 1977 관리자 기능에서 유용했음 |_ Korn (ksh) 1983 csh과 ksh의 장점 믹스|_ Korn (ksh93) 1993 이 때 POSIX Shell이 HPUX의 표준이됨 |_ Bourne-Again (bash) 1987|_ Cshell (csh) 1978 자동 완성기능 등 프로그래머들 유용한 커맨드 많음 Which Shell Interprects the Script? Hash #, bang ! and absolute path#!/usr/bin/sh Interpret using the POSIX Shell#!/bin/sh Interpret using the POSIX Shell ...#!/bin..

IoT 과정 2017. 7. 5. 12:23
POSIX Shell Programming

unix가 command 찾는 순서1. alias2. built-in or keyword3. $PATH : 출력되는 경로 순부터 커맨드를 찾는다. short circuit. 경로 맨 뒤에는 현재 디렉토리 . 도 포함되어 있는 것을 확인할 수 있다. type, ls, cd 등의 파일을 현재디렉토리에 생성하고 실행하려해도 short circuit 때문에 작동하지 않는다.이 세 순서로 찾은 뒤 없으면 command not found 라고 뜬다.참고 : $변수 입력 뒤 캐리지리턴시 substitution이 일어나 echo 커맨드를 발생. 또다른 예는 rm *. 오래된 유닉스 시스템 사용 시, 파일이 너무많을경우 rm * 수행시 command too long 에러를 터미널 화면에 리턴함. Shell Script는..

IoT 과정 2017. 7. 5. 10:38
HPUX - Managing Users and Groups

groups Every user on an HP-UX ystem is assigned a primary group membership and up to 20 additional group membership # id user1uid=301 (user1) gid=301(class)#groups user1class class2 users HP-UX PAssword Mechanism1 전통적 pw (default)2 shadow pw3 trusted system /tch/* /etc/passwd FileUsername :보통 8자, 그 이상도 가능하긴하지만 그 이상일 경우 명령어 사용시 짤림.passwd 길이 : 8자#passwd -l user1 //로그인할 수 없음User ID, Group ID : 0 fo..

IoT 과정 2017. 6. 26. 10:28
HPUX - Shell Programming - Loops

Arithmetic Evaluation Using let $ x=10$ x=x+1$ echo $xx+1 $ x=10$ let x=x+1 //let command enables shell scripts to use arithmetic expressions$ echo $x11$ (( x=x+1 ))$ echo $x12 $ x=12$ (( x>10 ))$ echo $?0 $ (( x> file.names echo "Continue?" echo enter yes or no read ansdone $ vi sum_them"sum_them" 10 lines, 139 charactersx=1sum=0while (( x > file.names echo "Continue?" echo enter yes or no read..

IoT 과정 2017. 6. 23. 16:31
HPUX - Shell Programming - Branches

Return CodesThe shell variable ? holds the return code of the last command executed{$ echo $?1$ adfsh: adf: not found.$ echot $?sh: echot: not found.$ echo $?127$ false$ echo $?1$ echo $?} test commandtest command can evaluate the condition of Integers, Strings, Files [조심! 실습파일은 test 말고 test.sh 등으로 작성, sh는 쉘을 의미]test - Numeric Test-lt, -le, -gt, -ge, -eq, -ne (less, less or equal, greater, great..

IoT 과정 2017. 6. 23. 14:57
이전 1 ··· 17 18 19 20 21 22 23 24 다음
이전 다음
공지사항
  • 소스코드 중 링크가 존재하지 않다고 뜨는 것은⋯
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 자바스크립트 예제
  • 로젠
  • grafana cloud
  • javascript
  • 아레나
  • 시뮬레이션
  • Arena
  • Propositional and Predicate Logic
  • 아레나 시뮬레이션
  • 최단경로 알고리즘
  • 데이터 중심 애플리케이션 설계
  • Grafana
  • arena simulation
  • 이산수학
  • 가상 면접 사례로 배우는 대규모 시스템 설계 기초
  • 아레나시뮬레이션
  • flutter
  • 명제논리
  • beginning javascript
  • paul wilton
  • 항해99
  • Simulation
  • 백준
  • Discrete Mathematics
  • 엄청난 인내심과 시뮬레이션을 위한 아레나 툴
  • 그라파나
  • 이산 수학
  • rosen
  • 자바스크립트
  • 대규모 시스템 설계 기초
more
«   2025/07   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바