|
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
|
|
4
Answers
|
|
12
Answers
|
|
6
Answers
|
|
3
Answers
|
|
1
Answer
|
|
1
Answer
|
|
1
Answer
|
|
0
Answers
|
|
1
Answer
|
| How do I change the sound theme in KDE and XFCE? | Audio/Video |
| Which OS is best for app development? | Applications |
| Can I run video in Linux? | Internet |
| 'Could not open lock file...' Where to fix this? | Systems Management |
| How can i link the output of a motion game in a phone to a real car or a robo car? | Phones |
The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.
Join / Linux Training / Board