Bash¶
https://jvns.ca/blog/2022/04/12/a-list-of-new-ish--command-line-tools/¶
General Tips¶
Double Dash (--
)¶
- tells shell to treat any future dashes like strings and not flags
npm test -- -u -t="ColorPicker"
-
the
-u
is a flag for the command and notnpm
¶
Why git checkout -- file.txt
¶
- the
--
is optional in this case - just a good habit, since branches usually have dashes
Command substitution¶
????
String substitution¶
????
- TODO: what's the difference?
Loops¶
Looping over array¶
Last update:
2023-04-24