I'm trying to show the number of lines, words and characters of all configuration files in
/etc/*conf (with command
How can I modify the command (or commandline) to not view the error messages?
i don't have access to a shell right now, but you can try something like
That should redirect all the errors and leave the output to be passed to wc
Usually just redirect the standard output to /dev/null to ignore the output, but this is not good practice when writing shell scripts
Try use -q instead to run the shell in quite mode, which will produce less output.
This might not be relevant to the question, but just FYI.
Above script is to delete backup folders created 7 days before. Run this script on daily basis in crontab. You can update the days by editing variable DELDIR, update -7 with any other number.