Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- filename=$(echo $1| cut -d '.' -f 1)
- commandi="gcc $1 -o $filename"
- eval $commandi
- if [[ $2 == 1 ]]; then
- eval "./$filename"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement