Hacker News new | ask | show | jobs
by imgabe 2325 days 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?

1 comments

If 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 :)