diff options
author | Akira Hirose <akrhrs@yahoo.co.jp> | 2014-07-23 15:32:50 +0900 |
---|---|---|
committer | Akira Hirose <akrhrs@yahoo.co.jp> | 2014-07-23 15:32:50 +0900 |
commit | e859a4edde405fc020cccc04a806ea877e26ed75 (patch) | |
tree | e7b8a8883456203b8d2ac756d2a36a97f1ea666e /bash.html.markdown | |
parent | 2fb3fc35705689083fd2ebf5b4d2f486607231ad (diff) |
just collected the order of comments and commands of last part
Diffstat (limited to 'bash.html.markdown')
-rw-r--r-- | bash.html.markdown | 10 |
1 files changed, 5 insertions, 5 deletions
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 ``` |