Computing.Net > Forums > Programming > options used inside if then else statement in

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

options used inside if then else statement in

Reply to Message Icon

Name: Antony Fredrick
Date: May 7, 2009 at 00:55:29 Pacific
OS: Unix
Subcategory: Opinions
Comment:

if [[ -a $outputFile ]]
then
rm $outputFile
fi

In the above code, why do we use double square brackets instead of one.

What does option -a do in the above coding?



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


How can find largest numb... Error : test: argument ex...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: options used inside if then else statement in

Ending an if/else statement www.computing.net/answers/programming/ending-an-ifelse-statement/7973.html

If else statement in Batch file www.computing.net/answers/programming/if-else-statement-in-batch-file/16954.html

Parse Text File www.computing.net/answers/programming/parse-text-file/17332.html