3 ms·
It would definitely be helpful to have more context. I know some bash, but I'm far from an expert. The first thing I see on the page is a list of flags, but no
by imgabe 7y ago
It would definitely be helpful to have more context. I know some bash, but I'm far from an expert. The first thing I see on the page is a list of flags, but no clue what commands these flags are used with. A few usage examples would help a lot.
For example "-e checks if files exists" How? -e filename ? This doesn't work?
- btschaegg 7y agoIf you're just wondering, try: test -e file or: if [ -e file ]; then echo "File exists!" else echo "File does not exist!" fi Edit: Untested, I'm currently not at my desk to verify it :)