What is this code doing? Especially the ${1}.TmpOut.
#!/usr/bin/env bash
if [ ! -f mergedOrca.out ]; then
echo "" > O2.out.orc
fi
cat ${1}.TmpOut >> O2.out.orc
What is this code doing? Especially the ${1}.TmpOut.
#!/usr/bin/env bash
if [ ! -f mergedOrca.out ]; then
echo "" > O2.out.orc
fi
cat ${1}.TmpOut >> O2.out.orc
You are seeing a positional parameter in the last line. The value of the first argument to the script is $1 or if you prefer, ${1}.
The curly braces also resolve ambiguity in expressions.