How to expand variables inside read?
In a remote CentOS with Bash 5.0.17(1) where I am the only user via SSH I have executed read web_application_root with:
In a remote CentOS with Bash 5.0.17(1) where I am the only user via SSH I have executed read web_application_root with:
I have a local machine which is supposed to make an SSH session to a remote master machine and then another inner SSH session from the master to each of some remote slaves, and then execute 2 commands i.e. to delete a specific directory and recreate it.
In zsh, running the command read -p 'erasing all directories (y/n) ?' ans, throws the error,
My script (should) acts differently, depending on the presence of the data in the input stream. So I can invoke it like this:
In order to understand another answer (by glenn jackman):
I’m used to bash‘s builtin read function in while loops, e.g.: