I have this command, that lists how many job files I have runningls -las /var/www/data/forked/jobs/j*.job | echo Jobs: $(wc -l)However, if there aren't any, it throws an error. What's the simplest way I can ignore the error, and get it to just display Jobs: 0?I've tried some things using the > /dev/null & and the like, but so far no luck.
How can I ignore errors in the ls command?
bash;ubuntu