When I read[command] some lines including character '*', it seems that '*' will be looked as a wildcard. whether exsits some solutions leting '*' just be a '*', please!
When I read[command] some lines including character ‘*’ , it seems that ‘*’ will
Share
If you do not want any of the special file name characters to be used as wildcards then enter the following in your script before the read.
set -o noglobThis will prevent the * ? and [] from having special meaning and treat them as normal characters.
The following example demonstrates the point