I am writing a bash script. Below is my command
screen -x stack -p n-api -X stuff "ls"
This command just pastes this command never executes. Hence i used
control + V + enter command
to form a symbol
^M
which is essentially an enter. but whenever i open the script to edit some other pieces the command goes away and again i am not able to press enter in the screen session using bash script