[Command] seq

숫자 list를 만들수 있습니다.

seq [$start [$step]] $end

유용한 option : -s

$> seq 10
1
2
3
4
5
6
7
8
9
10

$> seq -s " " 10
1 2 3 4 5 6 7 8 9 10

 

[Command] xargs

앞단 pipe result를 parameter로 사용할 수 있게 해줍니다.

$> seq 5 | xargs -I{} echo "test{}"
test1
test2
test3
test4
test5

 

[Command] cat

너무 흔한 command라  설명 생략.

동일한 파일을 100번 반복해서 붙이는 방법

$> seq 100 | xargs -Inone cat a.bin >> a100.bin

 

 

 

반응형

+ Recent posts