Redirections < and > are simple, also >> is quite simple, but I can't understand <<. What is purpose to add content to the end of command's input?
Asked
Active
Viewed 28 times
-1
linuxer
- 15
- 2
-
The "referenced answers" explains the *how*, but not the *why*. It is often helpful to provide file data (rather than arguments) directly from the script to a process that it runs (e.g. some config data), to avoid keeping a separate file in step with the script. It is even more helpful that the "here" data can contain expansions of variables set dynamically by the script itself. – Paul_Pedant Aug 29 '23 at 07:50