Is \" - \" a shortcut for stdout in bash? If not what does it mean? For example,
wget -q -O - $line
How about stdin?
Thanks and re
It depends on the program. Ususally, - means "send to the output".
-
Use read:
read
#!/bin/bash echo -n "What's your name? " read var1 echo "hello $var1"