findmisplacednote: Find a missing note
This commit is contained in:
parent
911c91d0b6
commit
f6db49a251
1 changed files with 16 additions and 0 deletions
16
util/findmisplacednote.sh
Normal file
16
util/findmisplacednote.sh
Normal 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
|
||||
}
|
Loading…
Reference in a new issue