function p2v() { name=$1; plink2 --vcf $name --out ${name//.vcf.gz/} ${@:2};} # ${@:2:4}
alias prl="bash -c '(for i in {1..22};do eval echo \$@ ;done) |parallel \"{}\" ' _"
Command line argument:
더보기
- $# Stores the number of command-line arguments that were passed to the shell program.
- $? Stores the exit value of the last command that was executed.
- $0 Stores the first word of the entered command (the name of the shell program).
- $* Stores all the arguments that were entered on the command line ($1 $2 ...).
- "$@" Stores all the arguments that were entered on the command line, individually quoted ("$1" "$2" ...).
./command -yes -no /home/username
- $# = 3
- $* = -yes -no /home/username
- $@ = array: {"-yes", "-no", "/home/username"}
- $0 = ./command, $1 = -yes etc.
$ for i in {11..14};do echo gen${i}/gen$(expr ${i} - 1).txt;done
gen11/gen10.txt
gen12/gen11.txt
gen13/gen12.txt
gen14/gen13.txt
Reference:
- https://superuser.com/questions/247127/what-is-and-in-linux/247131
'etc' 카테고리의 다른 글
GDC DNA-sequence analysis (0) | 2021.04.08 |
---|---|
다윈 (0) | 2021.02.15 |
유전체 회사 (0) | 2021.02.08 |
3billion's strategy (0) | 2020.10.15 |
PDF dark mode in Chrome (0) | 2020.09.14 |
댓글