Andrew's Digital Garden

read command

Using read -s allows you to set a variable without echoing it to the terminal. This can be helpful for storing passwords, tokens, etc for scripts without revealing them.

read -s TOKEN # Paste token ./script $TOKEN # We can now use the token

[[shell]]

`read` command