Directory Structure:
one.pdf
./subdir/two.pdf
./anothersubdir/three.pdf
When I type:
find ./ -type f -name "*.pdf"
it retrieves all the pdfs, including subdirectories.
Bash Function
function getext {find ./ -type f -name "$1"}
With this function in bashrc, typing:
getext *.pdf
It only retrieves "one.pdf" but not the rest.
Question: what happens here with the function? What's missing from it compared to standard input to only get the first file and stop?
Thank you for your help.
;
(or newline) before the closing}
. – Kusalananda Feb 15 '17 at 07:27