Shellで呼び出し、参照、別のスクリプトファイルを含める
361 ワード
テストスクリプトfirst
使用 method 1 : source fileName #!/bin/bash echo 'the second shell' source first method 2 : . fileName #!/bin/bash echo 'the second shell' . first method 3 : sh fileName #!/bin/bash echo 'the second shell' sh first
#!/bin/bash
echo 'the first shell'
使用