Created
March 17, 2015 03:29
-
-
Save aminamid/ea0c48da7e0c897fe0d7 to your computer and use it in GitHub Desktop.
Usage of sed, awk, grep
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zcat imapserv.*.stat.gz | grep -e ' .... ms' | sed -e 's#[;/\(\)]# #g' | awk '{printf("%s %s ",$2,$6); for(i=9;i<NF;i++){printf("%s%s",$i,OFS=" ")}print $NF}' | column -t | sort -k2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment