What does #$ do in bash? (aka: Hash dollar sign, pound dollar sign)

#$ does “nothing”, as # is starting comment and everything behind it on the same line is ignored (with the notable exception of the “shebang”).

$# is a variable containing the number of arguments passed to a shell script (like $* is a variable containing all arguments).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)