alias.ion 531 B

12345678910111213141516
  1. alias piped = "sed s/A/B/ | sed s/B/C/"
  2. alias logical = "echo LOGICAL1 && echo B"
  3. alias piped_and_logical = "sed s/A/B/ | sed s/B/PIPED_AND_LOGICAL1/ && echo B"
  4. # Alias contains only pipes
  5. echo A | piped | sed s/C/PIPED/
  6. # Alias containes logical operator
  7. logical | sed s/B/LOGICAL2/
  8. # Alias breaks pipeline into half by logical operator
  9. echo A | piped_and_logical | sed s/B/PIPED_AND_LOGICAL2/
  10. # Expanding multiple aliases in a singel pipeline
  11. echo A | piped | sed s/C/PIPED_OK/ && logical | piped_and_logical | sed s/B/DONE/