News for hackers. Stuff that matters.
Re:Shell Style Guide by assafmo on Tuesday May 15, 2018 @01:40PM (#17075893)
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
Re:Shell Style Guide by hi41 on Wednesday May 16, 2018 @08:40PM (#17087643)
very nice!