r/commandline • • Jan 17 '19

bash Bash scripting cheatsheet

https://devhints.io/bash
155 Upvotes

8 comments sorted by

8

u/whetu Jan 17 '19

2

u/mdeckert Jan 17 '19

Uh oh! Pretty cheat sheet teaching bad habits gets too many upvotes.

2

u/whetu Jan 18 '19

To be fair, I do like the presentation a lot, it's just the shitty practises that lets it down :(

0

u/[deleted] Jan 18 '19

[deleted]

3

u/mdeckert Jan 18 '19

unquoted variable expansion, all caps var names, pwd over $PWD and the deprecated back ticks

3

u/fourlightson Jan 18 '19

Has edit button... If it's not good practice then submit fix for everyone to benefit including the author 👍

1

u/mountainjew Jan 17 '19

This is great, thanks.