Bash - writing function definition in script after first call (as a GOTO/jump problematics)
I basically want to write me a bash script, where I'd generate a couple of big files using heredoc ; and then run some commands using those files. It is understood that (obviously) the heredoc files need to be generated before the commands run - however, what irritates me in that arrangement, is that I must also write the 'heredoc' statements code, before I write the command code. So I thought I'd write the heredoc statements in a function - but still the same problem here: Chapter 24. Functions says: The function definition must precede the first call to it. There is no method of "declaring"