May 2018
Beginner
332 pages
7h 28m
English
The here string is used for input redirection from <indexentry content="<<text or a variable. Input is mentioned on the same line within single quotes ('').
The syntax is as follows:
$ command <<< 'string'
#!/bin/bash wc -w <<< 'Good Morning and have a nice day !'
$ chmod u+x hereString_01.sh
$ ./hereString_01.sh
8
In this example, the string Good Morning and have a nice day ! is called as the here string.