shell_or_bash_scripts
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
shell_or_bash_scripts [2020/12/27 20:35] – external edit 127.0.0.1 | shell_or_bash_scripts [2022/10/14 06:01] (current) – [Double-Dash in Shell commands] skipidar | ||
---|---|---|---|
Line 132: | Line 132: | ||
+ | ==== Double-Dash -- in Shell commands ==== | ||
+ | A double-dash in a shell command signals the end of options and disables further option processing. | ||
+ | https:// | ||
+ | |||
+ | <sxh shell> | ||
+ | # If we use the same approach, we'll receive an error: | ||
+ | # That's because grep treats " | ||
+ | grep " | ||
+ | |||
+ | #works | ||
+ | grep -- --hello data.txt | ||
+ | </ |
shell_or_bash_scripts.1609101328.txt.gz · Last modified: by 127.0.0.1