2

This is nothing to do with Linux or with path separators, which you have already adjusted. set NODE_ENV=local This is not how to set an environment variable in a POSIX shell. && This is not how to run a command with a nonce environment variable setting in a POSIX shell. You need to learn the basics of POSIX shell scripting, including how to set ...


2

find . -type d -exec sh -c ' f="$1"/file [ -e "$f" ] && { printf "%s\n" "$f"; true; } ' find-sh {} \; -prune Instead of finding files I find directories and test the existence of file in each directory. If file exists, the path to it is printed and -prune activated for the directory. Notes: true is there to make sure -prune does its job even ...


Only top voted, non community-wiki answers of a minimum length are eligible