티스토리 뷰
Creating Inter Variables
number=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 Others
typeset -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 string: 16#a
Working with Arithmetic
let x=4+5 // ((x=4+5))
let "x= 4 + 5" // (( x = 4 + 5 ))
print $((x=4+5)) --> 9
print $x ---> 9
Binary Operators
<< shift bits left (( 8 << 1 )) --> 16 // 1000 10000
>> shift bits right (( 8 >> 1 )) --> 4 // 1000 100
& bitwise AND (( a & b )) ---> // 1000 & 0100 = 0000
| bitwise OR (( a | b )) ----> // 1000 & 0110 = 1110
^ bitwise exclusive OR (( a^b )) ----> // 1000 & 1110 = 0110
Working with Numeric Data
awk : UNIX command/program language
bc : Desktop calculator
expr : Expression command with functions
$(#string) : Length of string variable contents
PPID : Integer number of parents process
RANDOM : Random integer
SECONDS : Elapsed secons
'IoT 과정' 카테고리의 다른 글
Shell Patterns (0) | 2017.07.07 |
---|---|
Branches and Logic Testing (0) | 2017.07.06 |
Designing Program Output (0) | 2017.07.06 |
User Input (0) | 2017.07.05 |
Variable (0) | 2017.07.05 |
- Total
- Today
- Yesterday
- paul wilton
- grafana cloud
- Propositional and Predicate Logic
- 대규모 시스템 설계 기초
- 그라파나
- 최단경로 알고리즘
- Simulation
- Discrete Mathematics
- 아레나시뮬레이션
- 로젠
- 자바스크립트 예제
- 시뮬레이션
- 이산 수학
- arena simulation
- 자바스크립트
- 엄청난 인내심과 시뮬레이션을 위한 아레나 툴
- Arena
- javascript
- 아레나
- 아레나 시뮬레이션
- flutter
- rosen
- 항해99
- 이산수학
- Grafana
- 데이터 중심 애플리케이션 설계
- beginning javascript
- 명제논리
- 백준
- 가상 면접 사례로 배우는 대규모 시스템 설계 기초
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |