shellnotes/util/.hidden/.clearlogs.sh

20 lines
487 B
Bash
Raw Permalink 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() {
echo -n "Are you sure? " && read input
case $input in Y|Yes|yes|y|YES )
cd ~/.shellnotes/util/exec
2023-08-20 19:39:35 +02:00
chmod +x clearlogs
./clearlogs
2023-08-20 19:39:35 +02:00
cd ../../logs/sne
touch delete # In case directory is already empty
/bin/rm -f *
2021-03-28 11:39:18 +02:00
echo "[shellnotes] Logfiles cleared."
esac
2021-04-19 21:20:01 +02:00
cd $DIR
2021-03-28 11:39:18 +02:00
}