how to write function with nested commands
how to write function with nested commands I’m trying to write a find and cd function like so: findcd () { cd "$(dirname "$(find ‘$1’ -type ‘$2’ -name ‘$3′)")" } to be called like so: find . f [FILE_NAME] But it’s seeing the dollar sign and expecting more arguments as oppose to executing what’s inside. …