To debug or logging bash scripts may be simple with
echo „Text“ > logfile
I’m sure in most cases it will be managed like that. But how to diff between error debug and maybe warnings and handle it? Logging mechanism is so usefull, why not to use in shell scripts, too?
„Add logging functionality to bash / shell scripts.“ weiterlesen