findmisplacednote: Find a missing note

This commit is contained in:
dmarakom6 2021-02-11 08:12:24 +02:00
parent 911c91d0b6
commit f6db49a251

16
util/findmisplacednote.sh Normal file
View file

@ -0,0 +1,16 @@
:<<'info'
shellnotes - findmisplacednote.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 findmisplacednote() {
if [ $# -eq 0 ]; then
echo -n "Enter note name: " && read notename
else
notename=$1
fi
echo "Possible locations: "
find ~/ -iname $notename -print 2>/dev/null
}