|
Accepted Answer
|
|||
|
Are you sure it's a curly brace '{', and not a square bracket '['? The square bracket is just an alternative (and quite common) syntax for invoking the command test (1). According to the man page, '-x' checks if a file is executable, '-a' means 'and', '-e' checks if a file exists. So in other words, if the command was actually something like then it would be equivalent to the pseudocode |
|||
|
|||
|
Jabir is correct. To understand the flags using in the statements of a shell script you should read the bash manual, you can find an online version at http://linux.die.net/man/1/bash and search for the sequence that you are questioning. |
|||
|
|
Thanks, that was helpful. |
|||
|
|
try here http://linux.die.net there is more talk about linux script |
|||
|
|
10
Answers
|
|
10
Answers
|
|
4
Answers
|
|
27
Answers
|
|
27
Answers
|
|
1
Answer
|
|
0
Answers
|
|
0
Answers
|
|
1
Answer
|
|
1
Answer
|
The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.
Join / Linux Training / Board