From inside a bash script, I would like to create a file with a given content.
The content should contain variables expressions "$1", "$2"...
cat < myfile
The created file is meant to be used with variables:
./myfile param1 param2 param3
But myfile appears without the variables
$ cat myfile