Take a look at the script first:
touch test.txt touch loc echo "result1" > loc loc >> test.txt echo "result2" > loc loc >> test.txt rm loc
I create to files, one of them
loc is temporary and I try to write to it, but get the following error message:
5: script.sh: loc: not found 8: script.sh: loc: not found
How can I get it to work?