From f6db49a2516ba30955fac3c6c4ea800c2f39d517 Mon Sep 17 00:00:00 2001 From: dmarakom6 Date: Thu, 11 Feb 2021 08:12:24 +0200 Subject: [PATCH] findmisplacednote: Find a missing note --- util/findmisplacednote.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 util/findmisplacednote.sh diff --git a/util/findmisplacednote.sh b/util/findmisplacednote.sh new file mode 100644 index 0000000..4ee8c7d --- /dev/null +++ b/util/findmisplacednote.sh @@ -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 +} \ No newline at end of file