Create a bash script to create a file always starting with the same first line

Viewed 44

Good day,

I would like to create a bash script which would allow me to always start with the same line, but taking as argument the name of the file.

#!/bin/bash
read $name
echo "#!/env/bin/python3" > $name

I tried few codes like this one without success. I want to be able to change the name of the file every time I execute this script.

0 Answers
Related