mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 15:24:09 +03:00
just collected the order of comments and commands of last part
This commit is contained in:
parent
2fb3fc3570
commit
e859a4edde
@ -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
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user