Created
June 23, 2020 13:41
-
-
Save axjack/9b9ca5cd63dd20bd3905d440d3f8737c to your computer and use it in GitHub Desktop.
C++のexecファイルにinput.txtを喰わして実行する用のシェルスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -lt 1 ];then | |
echo "#USAGE:" | |
echo "./test.sh cpp_exec_file [input.txt]" | |
exit 0 | |
fi | |
input_file="input.txt" | |
if [ $# -eq 2 ]; then | |
input_file=./$2 | |
fi | |
echo ---------- | |
echo "#head ${input_file}" | |
head ./${input_file} | |
echo ---------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment