generation 546 25.11.20250714.62e0f05

This commit is contained in:
2025-12-03 22:50:31 -05:00
parent 35f493aa9c
commit c0caaeb234
5 changed files with 95 additions and 0 deletions

25
home/scripts/idk.sh Normal file
View File

@@ -0,0 +1,25 @@
add_idk() {
if [[ "$1" == "" ]]; then
echo "Empty entry"
exit 0
fi
fq=$(rg "$1" /home/synchronous/journal/rest/idk.md 2> /dev/null)
if [[ "$fq" != "" ]]; then
echo "Entry already present"
exit 0
fi
echo "- $1" >> /home/synchronous/journal/rest/idk.md
echo "Added entry: '$1'"
idk_len=$(wc -l /home/synchronous/journal/rest/idk.md | awk '{print $1}')
echo "You do not know $idk_len things!"
}
run_command() {
case $1 in
"add") add_idk "$2" ;;
"del") remove_idk "$2" ;;
*)
esac
}
run_command "$1" "$2"