commit 4cd18784167509d1401905ae2ceb616788553c29 parent 5030306d2cff6243d6b901948ab7941a5d30e8d3 Author: Martin J. Klöckner <martin.cachari@gmail.com> Date: Wed, 16 Dec 2020 00:24:09 -0300 Added a simple bash script to keep everything clean of 'a.out' garbage; Diffstat:
A | 95.11/clean.sh | | | 27 | +++++++++++++++++++++++++++ |
D | 95.11/guia03/a.out | | | 0 |
2 files changed, 27 insertions(+), 0 deletions(-) diff --git a/95.11/clean.sh b/95.11/clean.sh @@ -0,0 +1,27 @@ +#1/bin/bash + +# Removes every a.out from every subfolder where the +# sript is executed; + +# Set the filename; +file="a.out" + +# Check the file if exist or not; +if [ -f ./**/"$file" ] + +# if exists in any folder then removes it; + then + rm -v ./**/"$file" + echo "everithing cleaned succesfully " + +# also removes it if existes in the current directory; +elif [ -f "$file" ] + then + rm -v "$file" + echo "everithing cleaned succesfully " + +# if doesn't exist then does nothing; +else + echo "everything seems clean " + echo "there is nothing to do " +fi diff --git a/95.11/guia03/a.out b/95.11/guia03/a.out Binary files differ.