The echo command takes its arguments and prints them to standard output, then exits. In the above script, the output of the echo command is being piped to the input of the bc command with the pipe operator |
I don't get it because I also don't know how does the pipe operator in this code work... I thought they had nothing to do and wanted to solve first the problem related to the echo command.
Can you explain me briefly how does this work?
Which is the meaning of the pipe operator? and bc is a command or a variable?