I "inherited" some code in a project, and in one of the Bash scripts, they use echo
on a backticks-row, like:
#!/bin/bash
echo `/path/command argument`
What's the difference between that and just running the command itself?
#!/bin/bash
/path/command argument
Both send the command's output to the script's stdout.
So what's the difference? Why use echo
?
To combine it with a >
seems even worse:
#!/bin/bash
echo `/path/command argument > /var/log/exemple.log`