I am trying to make a bash script which takes some user input and processes as per the input.
The script is executable, and has a shebang.
The script is somewhat like this:
#!/bin/bash read name -p "Enter your name" echo $name >> namelist.txt
I don't want the user to open the script in Terminal. The script is made executable (chmod +x), and double click on the script will make it run. But it doesn't pause to take input, and the file remains empty.