shellnotes/util/.hidden/.clearlogs.sh

19 lines
457 B
Bash
Raw Normal View History

2021-03-28 11:39:18 +02:00
:<<'info'
shellnotes - .clearlogs.sh
(C) Dimitris Marakomihelakis
Released under the "All rights reserved" category. See the RIGHTS.txt file
in /docs/github/ for its full text.
info
function clearlogs() {
dir="$(pwd)"
echo -n "Are you sure? " && read input
case $input in Y|Yes|yes|y|YES )
cd ~/.shellnotes/logs
g++ .clearlogs.cpp -o clearlogs
~/.shellnotes/logs/clearlogs
rm -f clearlogs
echo "[shellnotes] Logfiles cleared."
esac
cd $dir
}