June 2017
Beginner
502 pages
11h 26m
English
The here string is a simple version of the here document, and it consists of a single line where the delimiter is expanded to feed the command:
#!/bin/bashtoday=$(date +%Y.%m.%d)cat <<< $today
The output is here:
zarrelli:~$ ./here-date-string.sh 2017.02.21
Read now
Unlock full access