Hacker News new | ask | show | jobs
by assafmo 2950 days ago
When breaking a pipe into two lines, I find it cleaner to end the first line with pipe instead of backslash. Then I indent the second line. Bash knows a command cannot end with pipe, therefore it's syntactically ok.

E.g.

  cmd1 |
    cmd2
Instead of:

  cmd1 \
    | cmd2
1 comments

very nice!