diff options
Diffstat (limited to 'functions/tech-support')
-rwxr-xr-x | functions/tech-support | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/tech-support b/functions/tech-support index 4fff28c..331cde4 100755 --- a/functions/tech-support +++ b/functions/tech-support @@ -347,7 +347,7 @@ for user in "${cfg_users[@]}"; do root) file="/root/.bash_history";; *) file="/home/$user/.bash_history";; esac; - cat $file | gawk '/^#[0-9]*/ {t = substr($0,2); next} {print strftime("%FT%T%z", t) " " $0}' | sort -u + sudo cat $file | gawk '/^#[0-9]*/ {t = substr($0,2); next} {print strftime("%FT%T%z", t) " " $0}' | sort -u done header Login History |