General Support - help with script file w1av - 10.06.2006, 03:09 Uhr Titel: help with script file
Hello....I made a small script just fooling around with learning some basics....it cleans the cookies out of the ./dillo directory. The script looks like this:
#!/bin/bash
rm cookies
There is a hidden directory in my /home/bob which is "./dillo. So the script is very basic and works. What I need to do is use an "if not exist" statement so that if there is no cookies file, I wont get an error message. I am not sure how to do this. I tried this:
if not exist goto exit
:exit
figured it may not work....looks more like DOS syntax....can anyone help????
schnorrer - 10.06.2006, 03:14 Uhr Titel: help with script file
#!/bin/bash