├── LICENSE ├── README.md ├── appA ├── A-1-1 │ ├── builtin.sh │ └── command.sh ├── A-1-2 │ ├── declare1.sh │ ├── declare2.sh │ ├── declare3.sh │ ├── declare4.sh │ ├── declare5.sh │ ├── declare6.sh │ ├── declare7.sh │ └── declare8.sh ├── A-1-3 │ └── getopts.sh ├── A-1-4 │ └── mapfile.sh ├── A-1-5 │ └── printf.sh ├── A-1-6 │ └── select.sh ├── A-1-7 │ ├── set-E.sh │ ├── set-e1.sh │ ├── set-e2.sh │ ├── set-e3.sh │ ├── set-f.sh │ ├── set-n.sh │ ├── set-o.sh │ ├── set-positional-parameters.sh │ ├── set-u.sh │ ├── set-v.sh │ └── set-x.sh ├── A-1-8 │ └── trap.sh ├── A-1-9 │ ├── wait1.sh │ └── wait2.sh ├── A-2 │ └── here-string.sh ├── A-3-1 │ └── brace-expansion1.sh ├── A-3-2 │ └── brace-expansion2.sh ├── A-3-3 │ └── brace-expansion3.sh ├── A-4-1 │ └── parameter-expansion1.sh ├── A-4-2 │ └── parameter-expansion2.sh ├── A-4-3 │ └── parameter-expansion3.sh ├── A-4-4 │ └── parameter-expansion4.sh ├── A-4-5 │ └── parameter-expansion5.sh ├── A-4-6 │ ├── parameter-expansion6.sh │ └── parameter-expansion7.sh └── A-5 │ ├── process-substitution1.sh │ └── process-substitution2.sh ├── ch01 ├── command-substitution1.sh ├── command-substitution2.sh ├── declare-array.sh ├── dot.nanorc ├── dot.vimrc ├── hello1.sh ├── hello2-1.sh ├── hello2-2.sh ├── hello2-3.sh ├── launch.json ├── print-array-elements.sh ├── remove-array-elements.sh ├── script1.sh ├── script2.sh └── user-defined-variables.sh ├── ch02 ├── backup.sh ├── connect_server.sh ├── hello3.sh ├── options.sh ├── parameters_with_options.sh ├── passing_options.sh ├── ping_server.sh ├── read_files.sh ├── read_options_values.sh ├── run_mysql.sh └── yourfile.txt ├── ch03 ├── backup2.sh ├── case_matching1.sh ├── case_matching2.sh ├── checking_files.sh ├── checking_numbers.sh ├── checking_strings1.sh ├── checking_strings2.sh ├── checking_strings3.sh ├── checking_strings4.sh ├── combining_tests1.sh ├── combining_tests2.sh ├── grade.sh ├── hello4.sh ├── hello5.sh ├── hello6.sh ├── message.txt └── search.sh ├── ch04 ├── dot.vimrc ├── hello7.sh ├── shellscript-1.json ├── shellscript-2.json ├── shellscript-3.json ├── shellscript-4.json ├── shellscript-5.json ├── shellscript-6.json └── snippets │ ├── color │ ├── if │ ├── welcome │ ├── welcome2 │ ├── welcome3 │ └── welcome4 ├── ch05 ├── arithmetic.sh ├── hello8.sh └── prompt_color.sh ├── ch06 ├── IFS.sh ├── IFS2.sh ├── advanced_loop.sh ├── c-style.sh ├── count_files.sh ├── file1.txt ├── hello9.sh ├── loop_redirect.sh ├── menu.sh ├── nested_loops.sh ├── ping_server_from_file.sh └── servers.txt ├── ch07 ├── check_file.sh ├── clean.sh ├── menu2.sh ├── pass_array.sh ├── recursive_function.sh ├── to_lower.sh ├── variable_scope.sh └── variable_scope2.sh ├── ch08 ├── check_cores.sh ├── myfile1 ├── myfile2 ├── myfile3 ├── parsecsv.sh └── tools ├── ch09 ├── httpd.conf ├── template.txt ├── vh.sed ├── vhost.sh └── vhost2.sh ├── ch10 ├── myfile1 ├── myfile2 ├── myfile3 ├── myfile4 └── passwd.awk ├── ch11 ├── myfile1 ├── myfile2 ├── myfile3 ├── myfile4 ├── myfile5 └── myfile6 ├── ch12 ├── 404.awk ├── access.log ├── browser.awk ├── count.awk ├── ip.awk ├── mail.log └── status.awk ├── ch13 ├── catalog.awk ├── catalog.xml ├── lastlog1.awk ├── lastlog1.txt ├── lastlog2.awk ├── lastlog2.txt ├── ll.awk ├── vh.awk └── virtualhost.conf ├── ch14 ├── args1.py ├── args2.py ├── args3.py ├── args4.py ├── args5.py ├── file.py ├── hello.py ├── string-manipulation01.py ├── string-manipulation02.py ├── string-manipulation03.py └── upper-lower.py └── mastering-linux-shell-scripting-2e-ja.png /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/README.md -------------------------------------------------------------------------------- /appA/A-1-1/builtin.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-1/builtin.sh -------------------------------------------------------------------------------- /appA/A-1-1/command.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-1/command.sh -------------------------------------------------------------------------------- /appA/A-1-2/declare1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-2/declare1.sh -------------------------------------------------------------------------------- /appA/A-1-2/declare2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-2/declare2.sh -------------------------------------------------------------------------------- /appA/A-1-2/declare3.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-2/declare3.sh -------------------------------------------------------------------------------- /appA/A-1-2/declare4.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-2/declare4.sh -------------------------------------------------------------------------------- /appA/A-1-2/declare5.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-2/declare5.sh -------------------------------------------------------------------------------- /appA/A-1-2/declare6.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-2/declare6.sh -------------------------------------------------------------------------------- /appA/A-1-2/declare7.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-2/declare7.sh -------------------------------------------------------------------------------- /appA/A-1-2/declare8.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-2/declare8.sh -------------------------------------------------------------------------------- /appA/A-1-3/getopts.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-3/getopts.sh -------------------------------------------------------------------------------- /appA/A-1-4/mapfile.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-4/mapfile.sh -------------------------------------------------------------------------------- /appA/A-1-5/printf.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-5/printf.sh -------------------------------------------------------------------------------- /appA/A-1-6/select.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-6/select.sh -------------------------------------------------------------------------------- /appA/A-1-7/set-E.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-7/set-E.sh -------------------------------------------------------------------------------- /appA/A-1-7/set-e1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-7/set-e1.sh -------------------------------------------------------------------------------- /appA/A-1-7/set-e2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-7/set-e2.sh -------------------------------------------------------------------------------- /appA/A-1-7/set-e3.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-7/set-e3.sh -------------------------------------------------------------------------------- /appA/A-1-7/set-f.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-7/set-f.sh -------------------------------------------------------------------------------- /appA/A-1-7/set-n.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-7/set-n.sh -------------------------------------------------------------------------------- /appA/A-1-7/set-o.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-7/set-o.sh -------------------------------------------------------------------------------- /appA/A-1-7/set-positional-parameters.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-7/set-positional-parameters.sh -------------------------------------------------------------------------------- /appA/A-1-7/set-u.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-7/set-u.sh -------------------------------------------------------------------------------- /appA/A-1-7/set-v.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-7/set-v.sh -------------------------------------------------------------------------------- /appA/A-1-7/set-x.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-7/set-x.sh -------------------------------------------------------------------------------- /appA/A-1-8/trap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-8/trap.sh -------------------------------------------------------------------------------- /appA/A-1-9/wait1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-9/wait1.sh -------------------------------------------------------------------------------- /appA/A-1-9/wait2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-1-9/wait2.sh -------------------------------------------------------------------------------- /appA/A-2/here-string.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-2/here-string.sh -------------------------------------------------------------------------------- /appA/A-3-1/brace-expansion1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-3-1/brace-expansion1.sh -------------------------------------------------------------------------------- /appA/A-3-2/brace-expansion2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-3-2/brace-expansion2.sh -------------------------------------------------------------------------------- /appA/A-3-3/brace-expansion3.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-3-3/brace-expansion3.sh -------------------------------------------------------------------------------- /appA/A-4-1/parameter-expansion1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-4-1/parameter-expansion1.sh -------------------------------------------------------------------------------- /appA/A-4-2/parameter-expansion2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-4-2/parameter-expansion2.sh -------------------------------------------------------------------------------- /appA/A-4-3/parameter-expansion3.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-4-3/parameter-expansion3.sh -------------------------------------------------------------------------------- /appA/A-4-4/parameter-expansion4.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-4-4/parameter-expansion4.sh -------------------------------------------------------------------------------- /appA/A-4-5/parameter-expansion5.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-4-5/parameter-expansion5.sh -------------------------------------------------------------------------------- /appA/A-4-6/parameter-expansion6.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-4-6/parameter-expansion6.sh -------------------------------------------------------------------------------- /appA/A-4-6/parameter-expansion7.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-4-6/parameter-expansion7.sh -------------------------------------------------------------------------------- /appA/A-5/process-substitution1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-5/process-substitution1.sh -------------------------------------------------------------------------------- /appA/A-5/process-substitution2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/appA/A-5/process-substitution2.sh -------------------------------------------------------------------------------- /ch01/command-substitution1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch01/command-substitution1.sh -------------------------------------------------------------------------------- /ch01/command-substitution2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch01/command-substitution2.sh -------------------------------------------------------------------------------- /ch01/declare-array.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | myarr=(one two three four five) 3 | echo ${myarr[1]} # 2番目の要素であるtwoが表示されます 4 | -------------------------------------------------------------------------------- /ch01/dot.nanorc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch01/dot.nanorc -------------------------------------------------------------------------------- /ch01/dot.vimrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch01/dot.vimrc -------------------------------------------------------------------------------- /ch01/hello1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Hello World" 3 | exit 0 4 | 5 | -------------------------------------------------------------------------------- /ch01/hello2-1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Hello $1" 3 | exit 0 4 | -------------------------------------------------------------------------------- /ch01/hello2-2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo "Hello $*" 3 | exit 0 4 | -------------------------------------------------------------------------------- /ch01/hello2-3.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch01/hello2-3.sh -------------------------------------------------------------------------------- /ch01/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch01/launch.json -------------------------------------------------------------------------------- /ch01/print-array-elements.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch01/print-array-elements.sh -------------------------------------------------------------------------------- /ch01/remove-array-elements.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch01/remove-array-elements.sh -------------------------------------------------------------------------------- /ch01/script1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch01/script1.sh -------------------------------------------------------------------------------- /ch01/script2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch01/script2.sh -------------------------------------------------------------------------------- /ch01/user-defined-variables.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch01/user-defined-variables.sh -------------------------------------------------------------------------------- /ch02/backup.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch02/backup.sh -------------------------------------------------------------------------------- /ch02/connect_server.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch02/connect_server.sh -------------------------------------------------------------------------------- /ch02/hello3.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch02/hello3.sh -------------------------------------------------------------------------------- /ch02/options.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch02/options.sh -------------------------------------------------------------------------------- /ch02/parameters_with_options.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch02/parameters_with_options.sh -------------------------------------------------------------------------------- /ch02/passing_options.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch02/passing_options.sh -------------------------------------------------------------------------------- /ch02/ping_server.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch02/ping_server.sh -------------------------------------------------------------------------------- /ch02/read_files.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch02/read_files.sh -------------------------------------------------------------------------------- /ch02/read_options_values.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch02/read_options_values.sh -------------------------------------------------------------------------------- /ch02/run_mysql.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch02/run_mysql.sh -------------------------------------------------------------------------------- /ch02/yourfile.txt: -------------------------------------------------------------------------------- 1 | aaa 2 | bbb 3 | ccc 4 | -------------------------------------------------------------------------------- /ch03/backup2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch03/backup2.sh -------------------------------------------------------------------------------- /ch03/case_matching1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch03/case_matching1.sh -------------------------------------------------------------------------------- /ch03/case_matching2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch03/case_matching2.sh -------------------------------------------------------------------------------- /ch03/checking_files.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch03/checking_files.sh -------------------------------------------------------------------------------- /ch03/checking_numbers.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch03/checking_numbers.sh -------------------------------------------------------------------------------- /ch03/checking_strings1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch03/checking_strings1.sh -------------------------------------------------------------------------------- /ch03/checking_strings2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch03/checking_strings2.sh -------------------------------------------------------------------------------- /ch03/checking_strings3.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch03/checking_strings3.sh -------------------------------------------------------------------------------- /ch03/checking_strings4.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch03/checking_strings4.sh -------------------------------------------------------------------------------- /ch03/combining_tests1.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch03/combining_tests1.sh -------------------------------------------------------------------------------- /ch03/combining_tests2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch03/combining_tests2.sh -------------------------------------------------------------------------------- /ch03/grade.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch03/grade.sh -------------------------------------------------------------------------------- /ch03/hello4.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch03/hello4.sh -------------------------------------------------------------------------------- /ch03/hello5.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch03/hello5.sh -------------------------------------------------------------------------------- /ch03/hello6.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch03/hello6.sh -------------------------------------------------------------------------------- /ch03/message.txt: -------------------------------------------------------------------------------- 1 | I see you are logged on then! 2 | 3 | -------------------------------------------------------------------------------- /ch03/search.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch03/search.sh -------------------------------------------------------------------------------- /ch04/dot.vimrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch04/dot.vimrc -------------------------------------------------------------------------------- /ch04/hello7.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch04/hello7.sh -------------------------------------------------------------------------------- /ch04/shellscript-1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch04/shellscript-1.json -------------------------------------------------------------------------------- /ch04/shellscript-2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch04/shellscript-2.json -------------------------------------------------------------------------------- /ch04/shellscript-3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch04/shellscript-3.json -------------------------------------------------------------------------------- /ch04/shellscript-4.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch04/shellscript-4.json -------------------------------------------------------------------------------- /ch04/shellscript-5.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch04/shellscript-5.json -------------------------------------------------------------------------------- /ch04/shellscript-6.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch04/shellscript-6.json -------------------------------------------------------------------------------- /ch04/snippets/color: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch04/snippets/color -------------------------------------------------------------------------------- /ch04/snippets/if: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch04/snippets/if -------------------------------------------------------------------------------- /ch04/snippets/welcome: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch04/snippets/welcome -------------------------------------------------------------------------------- /ch04/snippets/welcome2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch04/snippets/welcome2 -------------------------------------------------------------------------------- /ch04/snippets/welcome3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch04/snippets/welcome3 -------------------------------------------------------------------------------- /ch04/snippets/welcome4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch04/snippets/welcome4 -------------------------------------------------------------------------------- /ch05/arithmetic.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch05/arithmetic.sh -------------------------------------------------------------------------------- /ch05/hello8.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #パラメーター置換を使ってデフォルト値を指定します 3 | name=${1-"Anonymous"} 4 | echo "Hello $name" 5 | exit 0 6 | -------------------------------------------------------------------------------- /ch05/prompt_color.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch05/prompt_color.sh -------------------------------------------------------------------------------- /ch06/IFS.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch06/IFS.sh -------------------------------------------------------------------------------- /ch06/IFS2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch06/IFS2.sh -------------------------------------------------------------------------------- /ch06/advanced_loop.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch06/advanced_loop.sh -------------------------------------------------------------------------------- /ch06/c-style.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch06/c-style.sh -------------------------------------------------------------------------------- /ch06/count_files.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch06/count_files.sh -------------------------------------------------------------------------------- /ch06/file1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch06/file1.txt -------------------------------------------------------------------------------- /ch06/hello9.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch06/hello9.sh -------------------------------------------------------------------------------- /ch06/loop_redirect.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch06/loop_redirect.sh -------------------------------------------------------------------------------- /ch06/menu.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch06/menu.sh -------------------------------------------------------------------------------- /ch06/nested_loops.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch06/nested_loops.sh -------------------------------------------------------------------------------- /ch06/ping_server_from_file.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch06/ping_server_from_file.sh -------------------------------------------------------------------------------- /ch06/servers.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch06/servers.txt -------------------------------------------------------------------------------- /ch07/check_file.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch07/check_file.sh -------------------------------------------------------------------------------- /ch07/clean.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch07/clean.sh -------------------------------------------------------------------------------- /ch07/menu2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch07/menu2.sh -------------------------------------------------------------------------------- /ch07/pass_array.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch07/pass_array.sh -------------------------------------------------------------------------------- /ch07/recursive_function.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch07/recursive_function.sh -------------------------------------------------------------------------------- /ch07/to_lower.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch07/to_lower.sh -------------------------------------------------------------------------------- /ch07/variable_scope.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch07/variable_scope.sh -------------------------------------------------------------------------------- /ch07/variable_scope2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch07/variable_scope2.sh -------------------------------------------------------------------------------- /ch08/check_cores.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch08/check_cores.sh -------------------------------------------------------------------------------- /ch08/myfile1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch08/myfile1 -------------------------------------------------------------------------------- /ch08/myfile2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch08/myfile2 -------------------------------------------------------------------------------- /ch08/myfile3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch08/myfile3 -------------------------------------------------------------------------------- /ch08/parsecsv.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch08/parsecsv.sh -------------------------------------------------------------------------------- /ch08/tools: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch08/tools -------------------------------------------------------------------------------- /ch09/httpd.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch09/httpd.conf -------------------------------------------------------------------------------- /ch09/template.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch09/template.txt -------------------------------------------------------------------------------- /ch09/vh.sed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch09/vh.sed -------------------------------------------------------------------------------- /ch09/vhost.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch09/vhost.sh -------------------------------------------------------------------------------- /ch09/vhost2.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch09/vhost2.sh -------------------------------------------------------------------------------- /ch10/myfile1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch10/myfile1 -------------------------------------------------------------------------------- /ch10/myfile2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch10/myfile2 -------------------------------------------------------------------------------- /ch10/myfile3: -------------------------------------------------------------------------------- 1 | 50 2 | 30 3 | 80 4 | 70 5 | 20 6 | 90 7 | -------------------------------------------------------------------------------- /ch10/myfile4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch10/myfile4 -------------------------------------------------------------------------------- /ch10/passwd.awk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch10/passwd.awk -------------------------------------------------------------------------------- /ch11/myfile1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch11/myfile1 -------------------------------------------------------------------------------- /ch11/myfile2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch11/myfile2 -------------------------------------------------------------------------------- /ch11/myfile3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch11/myfile3 -------------------------------------------------------------------------------- /ch11/myfile4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch11/myfile4 -------------------------------------------------------------------------------- /ch11/myfile5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch11/myfile5 -------------------------------------------------------------------------------- /ch11/myfile6: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch11/myfile6 -------------------------------------------------------------------------------- /ch12/404.awk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch12/404.awk -------------------------------------------------------------------------------- /ch12/access.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch12/access.log -------------------------------------------------------------------------------- /ch12/browser.awk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch12/browser.awk -------------------------------------------------------------------------------- /ch12/count.awk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch12/count.awk -------------------------------------------------------------------------------- /ch12/ip.awk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch12/ip.awk -------------------------------------------------------------------------------- /ch12/mail.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch12/mail.log -------------------------------------------------------------------------------- /ch12/status.awk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch12/status.awk -------------------------------------------------------------------------------- /ch13/catalog.awk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch13/catalog.awk -------------------------------------------------------------------------------- /ch13/catalog.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch13/catalog.xml -------------------------------------------------------------------------------- /ch13/lastlog1.awk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch13/lastlog1.awk -------------------------------------------------------------------------------- /ch13/lastlog1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch13/lastlog1.txt -------------------------------------------------------------------------------- /ch13/lastlog2.awk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch13/lastlog2.awk -------------------------------------------------------------------------------- /ch13/lastlog2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch13/lastlog2.txt -------------------------------------------------------------------------------- /ch13/ll.awk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch13/ll.awk -------------------------------------------------------------------------------- /ch13/vh.awk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch13/vh.awk -------------------------------------------------------------------------------- /ch13/virtualhost.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch13/virtualhost.conf -------------------------------------------------------------------------------- /ch14/args1.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python3 2 | import sys 3 | print("Hello " + sys.argv[1]) 4 | -------------------------------------------------------------------------------- /ch14/args2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch14/args2.py -------------------------------------------------------------------------------- /ch14/args3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch14/args3.py -------------------------------------------------------------------------------- /ch14/args4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch14/args4.py -------------------------------------------------------------------------------- /ch14/args5.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch14/args5.py -------------------------------------------------------------------------------- /ch14/file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch14/file.py -------------------------------------------------------------------------------- /ch14/hello.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python3 2 | print("Hello World") 3 | -------------------------------------------------------------------------------- /ch14/string-manipulation01.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch14/string-manipulation01.py -------------------------------------------------------------------------------- /ch14/string-manipulation02.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch14/string-manipulation02.py -------------------------------------------------------------------------------- /ch14/string-manipulation03.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch14/string-manipulation03.py -------------------------------------------------------------------------------- /ch14/upper-lower.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/ch14/upper-lower.py -------------------------------------------------------------------------------- /mastering-linux-shell-scripting-2e-ja.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/oreilly-japan/mastering-linux-shell-scripting-2e-ja/HEAD/mastering-linux-shell-scripting-2e-ja.png --------------------------------------------------------------------------------