title: How can I configure and allow pipes in my bash script?
body: <p>I'm a beginner writing Bash scripts so I'm confused on the architecture of pipes. For the basic commands such as <code>grep</code> for example, did pipes have to be somehow configured and programmed to be allowed into the command? Or do pipes just automatically pass in the outputs as the first argument to whatever is being piped to?</p>
  
  <p>My main question is say I have a script that takes in text as the first argument using something like <code>my_script.sh text_file</code>. Would pipes work automatically if I were to do <code>echo Hello | my_script.sh</code> or would I have to follow some interface to allow pipes.</p>