I have this bash code:
if [[ ! -f "$HOME/.oresoftware/package.json" ]]; then
cat "node_modules/@oresoftware/package.json" > "$HOME/.oresoftware/package.json";
fi
but is there a way to only redirect to a file if it doesn't exist in just one line of code? something like this:
cat "node_modules/@oresoftware/package.json" ?> "$HOME/.oresoftware/package.json";
that would be fun I guess