I know to get an input with a shell script you can do
echo "text"
read $VAR
or to get it at runtime
#! /bin/sh
if [ "$1" ]
then
#do stuff
else
echo "No input"
fi
But what if I want to get the entire string after I run it, including spaces? I could use quotation marks, but is there any way around this, so I can do:
./script.sh This is a sentence
echo text; read, useread -ptext var!