← here documents • Home • Redirection of standard error → Here strings is just like here documents and syntax is: command <<<$word OR command arg1 <<<"$word" The $word (a shell variable) is expanded and supplied to the command on its standard input. The following wc command will count words from given argument: Sample outputs: 4 grepping into a shell variable Usually, you can not grep into a $var.