"Bash"의 두 판 사이의 차이
ph
잔글 |
|||
7번째 줄: | 7번째 줄: | ||
*[http://tldp.org/LDP/Bash-Beginners-Guide/html/index.html Bash Guide for Beginners] | *[http://tldp.org/LDP/Bash-Beginners-Guide/html/index.html Bash Guide for Beginners] | ||
*[http://www.linuxconfig.org/Bash_scripting_Tutorial Bash scripting Tutorial] | *[http://www.linuxconfig.org/Bash_scripting_Tutorial Bash scripting Tutorial] | ||
+ | |||
+ | |||
==bash expansion : ranges== | ==bash expansion : ranges== |
2017년 3월 30일 (목) 23:42 판
manual, refs
- Mendel Cooper - Advanced Bash-Scripting Guide (aka. ABS) (한글판)
- Bash Reference Manual
- bash features
- BASH Programming - Introduction HOW-TO ★
- Bash Guide for Beginners
- Bash scripting Tutorial
bash expansion : ranges
$ echo {d..h} d e f g h $ echo {d..Z} d c b a _ ^ ] [ Z
For more information, refer wiki.bash-hackers.org.
redirection
### cp file1 file2와 같다 $ cat < file1 > file2
nice
Usage: nice [OPTION] [COMMAND [ARG]...] Run COMMAND with an adjusted niceness, which affects process scheduling. With no COMMAND, print the current niceness. Niceness values range from -20 (most favorable to the process) to 19 (least favorable to the process).
string : $''
$ # Single quotation in single qoute $ # http://stackoverflow.com/a/16605140/766330 $ echo \'sdlfkjsldf\' | sed $'s/\'//' sdlfkjsldf' $ # $'string' : this is special. $ # below line won't work. $ # echo \'sdlfkjsldf\' | sed 's/\'//‘
or
$ # 'or' $ if [ -z "$1" ] || [ -z "$2" ]; then > echo "Usage: `basename $0` rslt_file target_folder" > fi