From 895c255fe11c2fa2ef6adb0a4e02c5db8ea2ada9 Mon Sep 17 00:00:00 2001 From: danasmera Date: Fri, 17 Jul 2015 01:41:12 -0400 Subject: [PATCH 1/3] fix: useless use of cat --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 692d1b4..b5acf04 100644 --- a/README.md +++ b/README.md @@ -288,7 +288,7 @@ A few examples of piecing together commands: - Say you have a text file, like a web server log, and a certain value that appears on some lines, such as an `acct_id` parameter that is present in the URL. If you want a tally of how many requests for each `acct_id`: ```sh - cat access.log | egrep -o 'acct_id=[0-9]+' | cut -d= -f2 | sort | uniq -c | sort -rn + egrep -o 'acct_id=[0-9]+' access.log | cut -d= -f2 | sort | uniq -c | sort -rn ``` - Run this function to get a random tip from this document (parses Markdown and extracts an item): From c8c84d0db633d0e88e45a5165b978e88af72dedd Mon Sep 17 00:00:00 2001 From: danasmera Date: Fri, 17 Jul 2015 01:46:56 -0400 Subject: [PATCH 2/3] Get Linux distribution information --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index b5acf04..b880758 100644 --- a/README.md +++ b/README.md @@ -302,6 +302,9 @@ A few examples of piecing together commands: } ``` +- Find out the name,version and codename of your Linux OS distribution with Python +`python -c 'from platform import dist; print dist()'` + ## Obscure but useful From 89a93992ae29029e77f06e96fee50234de21ee13 Mon Sep 17 00:00:00 2001 From: danasmera Date: Fri, 17 Jul 2015 01:48:13 -0400 Subject: [PATCH 3/3] Add new line --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b880758..4ec15e0 100644 --- a/README.md +++ b/README.md @@ -303,6 +303,7 @@ A few examples of piecing together commands: ``` - Find out the name,version and codename of your Linux OS distribution with Python + `python -c 'from platform import dist; print dist()'`