Execute shell script on linux
But when executed, it displays
The directory does exist. what happened? ?
PHP中文网2017-06-20 10:09:44
When assigning values to bash variables, there cannot be spaces on both sides of the equal sign. It should be written as:
dir=/webserver/test/
typecho2017-06-20 10:09:44
dir =/web...
There can be no spaces on the left and right sides of the equal sign