r/shittyprogramming • u/heroinpuppy • Jan 19 '23
Does this count?
#!/bin/bash
# Slightly faster find
if [ $# -ne 2 ]; then
echo "Use two arguments: ff <location> <query>"
else
find $1 -iname \*$2\*
fi
38
Upvotes
View all comments
Show parent comment
5
u/ericanderton Jan 20 '23
Honestly, 99% of the time this is all I want out of
find. For added lazyness, I would implement this as a function in my .bashrc instead:You could use an alias too but this is easier to read, which will matter when you come back and wonder what
ffdoes.