What are the differences between here document and here string in their purposes? [on hold]
Clash Royale CLAN TAG #URR8PPP up vote 2 down vote favorite 1 In bash, it seems to me both here document and here string can be used for providing strings as stdin inputs. here document may provide an extra features to specify delimiter, which I am not sure if is necessary in any case. What are the differences between their purposes? Can one always be used wherever the other is used? When shall we use which? Thanks. bash io-redirection here-document here-string share | improve this question asked Nov 18 at 13:32 Tim 1 put on hold as primarily opinion-based by Kusalananda, G-Man, Isaac, X Tian, mosvy 2 days ago Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question. 4 Use here-s...