read -p "enter some words :" $PASTE
curl -s "example.com/${PASTE} | code continues
What I want to do is if user enter two or more words I want to substitute spaces with - in PASTE
variable.
Example:
PASTE=default application
New paste:
PASTE=default-application
How can I do that?