I came across this shell script for OSX and I don’t understand the following:
[ -e ~/Library/Application\ Support/Dock/*.db ] on line 191?
What is that command doing? I’ve also seen things like [ -r "$file" ]. I don’t completely understand this syntax.
-eis an argument to[command (which is an alias oftest; you can read the full docs withman test). It means «if the file or directory exists». This line is harmless unless[was redefined earlier.