I'm now learning to tinker with bash
(Ubuntu Terminal) and would like to understand the difference between these three operators.
I think <
is related to files, but I can not explain what it does descriptively. I think it's to send the value of the file to the command to execute.
Example:
cat < index.php
#Exibe o conteúdo do arquivo
When I use <<
, it opens a new line, without executing the previous command (I do not understand what it does right).
Example:
cat <<
>
>
And <<<
seemed to be related to expressions.
Example:
cat <<< "O número é $((13 + 2))"
O número é 15
-
So, in which case do I use
<
,<<
, or<<<
? -
What is the purpose of each?
-
What are their names?