linux - Checking wether a directory exist in the home directory -


The weather attempt is present in the home directory

  if [! -d "$ HOME / Smart_Cycle"]; Then the McDear SmartChill $ diaperpath "Creating Directory" "FI  

is trying to check the weather, the Smart Directory is present in the home directory, and if it does not exist then it will create the directory Whether it is happening or if I'm on the right track.

While running the script, I have two errors which I have never seen before. / SmartCycle: Line 4: Unexpected ` Looking for matching '' ./smartcycle EOF: Line 6: Syntax Error: Unexpected End of File

You had an extra quotation mark < / P>

  echo "Creating a directory" " 

Try it out

  if [! -d "$ HOME / Smart_Cycle"]; Then you can create more than one directory at one time  
  mkdir ABC   

Code>

In your case, $ DIRPATH will be evaluated and $ DIRPATH indicated in the value contained in another directory


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -