I am an absolute beginner at UNIX scripting (and have searched here for something explaining how to do this in a simple way to no avail). I am trying to pipe the contents of a claimName.txt filefind . -name 'claimName.txt' -exec cat {} \;into a Node.js script that takes this value after a -c flagnpm run import -- -r ./ -c {claimName.txt contents go here}What's the simplest way to pipe the claimName.txt contents to follow the -c flag?
pipe the output of cat into a node script
bash;command line;pipe
You can use this without a pipe:npm run import -- -r ./ -c $(find . -name 'claimName.txt' -exec cat {} \; -quit)