User Tools

Site Tools


shell2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
shell2 [2022/10/17 12:31] – [Protips for find] dblumeshell2 [2024/10/07 22:00] (current) dblume
Line 51: Line 51:
 declare -r SCRIPT_NAME=$(basename "$BASH_SOURCE") declare -r SCRIPT_NAME=$(basename "$BASH_SOURCE")
  
-## exit the shell (default status code: 1) after printing the message to stderr+# exit (default status code: 1) after printing the message to stderr
 die() { die() {
     echo >&2 "$1"     echo >&2 "$1"
Line 565: Line 565:
   lib/libprotoc.so.13.0.2   lib/libprotoc.so.13.0.2
  
 +Tip: tar up the last day's worth of log files:
 +
 +  find . -mtime -1 -name \*.log -print0 | tar -jcvf logs.tar.bz2 --null -T -
 ====== Additional Keywords ====== ====== Additional Keywords ======
  
 Linux, Unix, *nix Linux, Unix, *nix
shell2.1666035074.txt.gz · Last modified: 2023/04/12 20:44 (external edit)