Hi,
i want to create an user-friendly script where you are asked for two numbers. i would like that these two number to be separated with "--" for example, but i can't figure out how to do this.
for example
read -p "Insert lowest and highest value: " min ; echo -n "-- "; read max
so when i run the script
$>. script.sh
Insert lowest and highest value: 4 -- 10
instead, i get
$>. script.sh
Insert lowest and highest value: 4
-- 10
i would like the user to insert all the variables in the same line
any help is appreciated
thanks