cts (Cファイルをテスト実行するシェルスクリプト)
#!/bin/bash if [ -n "$1" ] then if [ -f "$1" ] && [ -r "$1" ] then gcc $1 -o $1.o 2> err.log>&2 ./$1.o rm $1.o else echo $1 is not found. fi else echo "No input" fi
#!/bin/bash if [ -n "$1" ] then if [ -f "$1" ] && [ -r "$1" ] then gcc $1 -o $1.o 2> err.log>&2 ./$1.o rm $1.o else echo $1 is not found. fi else echo "No input" fi