From e859a4edde405fc020cccc04a806ea877e26ed75 Mon Sep 17 00:00:00 2001 From: Akira Hirose Date: Wed, 23 Jul 2014 15:32:50 +0900 Subject: just collected the order of comments and commands of last part --- bash.html.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bash.html.markdown') diff --git a/bash.html.markdown b/bash.html.markdown index d5d08e9d..29b0c8db 100644 --- a/bash.html.markdown +++ b/bash.html.markdown @@ -155,14 +155,14 @@ bar () foo "My name is" $NAME # There are a lot of useful commands you should learn: -tail -n 10 file.txt # prints last 10 lines of file.txt -head -n 10 file.txt +tail -n 10 file.txt # prints first 10 lines of file.txt -sort file.txt +head -n 10 file.txt # sort file.txt's lines -uniq -d file.txt +sort file.txt # report or omit repeated lines, with -d it reports them -cut -d ',' -f 1 file.txt +uniq -d file.txt # prints only the first column before the ',' character +cut -d ',' -f 1 file.txt ``` -- cgit v1.2.3 From 4f97478d6beba127180f7f6d3278aef79b901441 Mon Sep 17 00:00:00 2001 From: Akira Hirose Date: Wed, 23 Jul 2014 15:43:18 +0900 Subject: add a contributor line :) --- bash.html.markdown | 1 + 1 file changed, 1 insertion(+) (limited to 'bash.html.markdown') diff --git a/bash.html.markdown b/bash.html.markdown index 29b0c8db..15d1c068 100644 --- a/bash.html.markdown +++ b/bash.html.markdown @@ -6,6 +6,7 @@ contributors: - ["Darren Lin", "https://github.com/CogBear"] - ["Alexandre Medeiros", "http://alemedeiros.sdf.org"] - ["Denis Arh", "https://github.com/darh"] + - ["akirahirose", "https://twitter.com/akirahirose"] filename: LearnBash.sh --- -- cgit v1.2.3