How to Double Dash?

Use `–` to separate options from positional arguments

Put `–` before the first argument that should not be parsed as an option

Example: `command — -filename`

Example: `rm — -file`

Example: `grep — -pattern file.txt`

Use `–` when a filename, value, or argument starts with `-`

Use `–` to stop option parsing in many Unix-style commands

Suggested for You

Trending Today