在指令裡面,dash (-, 通常是按鍵0右邊那個)代表的是標準輸入(standard input):
- cat ERR194147.fastq.gz | pv | time seqtk fqchk -q 30 -
- zcat ERR194147.fastq.gz | pv | time seqtk fqchk -q 30 -
- unpigz -p 4 -c ERR194147.fastq.gz | pv | time seqtk fqchk -q 30 -
上述三個指令都是等價的,seqtk後面原本是應該要加入一個檔案的。這時用 -,代表seqtk要讀取的檔案是從標準輸入來,然後這個標準輸入又會是前一個pipe的輸出
相關資料
- 14 Useful “cat” Command Examples in Linux
- Pipes, Forks, & Dups: Understanding Command Execution and Input/Output Data Flow:用很漂亮的圖解釋pipe, fork
_EOF_
Gothic painting of an ancient castle at night, with a full moon, gargoyles, and shadows.
Steps: 32, Sampler: Euler, CFG scale: 7, Seed: 3316024589, Size: 512x512, Model hash: 5c7d38880d, Model: playground-v2, Version: v1.6.0-2-g4afaaf8a
Time taken: 31.0 sec.
沒有留言:
張貼留言