VAR='hello'

Category: Bash Scripting

VAR='hello'

Assign a value to a variable (no spaces around =)

Assigns a value to a variable. No spaces around the = sign — spaces would break this in bash.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.