Unix tool tip

6.3K posts

Unix tool tip banner
Unix tool tip

Unix tool tip

@UnixToolTip

Tips on Unix utilities and related topics from @JohnDCook.

Katılım Ağustos 2011
19 Takip Edilen83K Takipçiler
Sabitlenmiş Tweet
Unix tool tip
Unix tool tip@UnixToolTip·
'The enjoyment of one's tools is an essential ingredient of successful work.' -- Donald E. Knuth
English
12
336
621
0
Unix tool tip
Unix tool tip@UnixToolTip·
List lines that do NOT match a regular expression: grep -v
English
0
0
5
636
Unix tool tip retweetledi
sysxplore
sysxplore@sysxplore·
Linux pros and cons
sysxplore tweet media
English
12
114
1K
24.7K
Unix tool tip
Unix tool tip@UnixToolTip·
Display a file with line numbers: cat -n or nl.
English
1
1
8
2.1K
Unix tool tip
Unix tool tip@UnixToolTip·
Count how many lines of a text file begin with each letter. cut -c1 file.txt | sort | uniq -c | sort -rn
English
1
2
20
2.8K
Unix tool tip retweetledi
I laughed
I laughed@found_it_funny·
ZXX
92
637
11.1K
399.1K
Unix tool tip
Unix tool tip@UnixToolTip·
The sed command r inserts a file. For example, insert foo.h after 'INCLUDE': sed '/INCLUDE/ r foo.h'
English
0
2
14
3.6K
Unix tool tip
Unix tool tip@UnixToolTip·
Show line endings in a file: cat -E
English
0
1
10
2.5K
Unix tool tip
Unix tool tip@UnixToolTip·
The option -i or --ignore-case tells diff to do a case-insensitive comparison.
English
0
0
6
2.6K
Unix tool tip
Unix tool tip@UnixToolTip·
List files containing a match for a regular expression: grep -l
English
0
1
12
2K
Unix tool tip
Unix tool tip@UnixToolTip·
The substitute command in sed can take a 'w' option to specify an output file. e.g. sed s/foo/bar/w myfile.
English
0
0
9
3.2K
Unix tool tip
Unix tool tip@UnixToolTip·
Awk script to count the number of words in a file: awk '{ total = total + NF }; END { print total+0 }'
English
1
1
13
2.8K
Unix tool tip
Unix tool tip@UnixToolTip·
wc -L shows the length of the longest line in a file.
English
1
1
27
2.7K
Unix tool tip
Unix tool tip@UnixToolTip·
wc returns the number of lines, words, and bytes in a file. Can use -l, -w, -c to get just one of these.
English
0
1
15
1.7K
Unix tool tip
Unix tool tip@UnixToolTip·
@AlgebraFact If you stick two squares on the longer side of a silver rectangle, you get another silver rectangle.
Unix tool tip tweet media
English
1
1
9
689
Algebra Etc.
Algebra Etc.@AlgebraFact·
If you stick a square on the longer side of a golden reactangle, you get another golden rectangle.
Algebra Etc. tweet media
English
2
7
64
5.2K