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.

Beigetreten Ağustos 2011
19 Folgt83.1K Follower
Angehefteter 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
337
621
0
Unix tool tip
Unix tool tip@UnixToolTip·
Was reading up on dc and a source said one of its advantages is its use in obfuscated code competitions. If a language is good for writing obfuscated code, maybe that’s a bad sign.
English
2
0
5
1.5K
Unix tool tip retweetet
John D. Cook
John D. Cook@JohnDCook·
I talked to a man yesterday who has 5 virtual assistants. I only have two: Python and Bash. I used to have a virtual assistant named Perl but I had to let her go. I got along with her OK but not the rest of my staff.
English
2
2
49
3.3K
Unix tool tip
Unix tool tip@UnixToolTip·
Sort a file numerically: sort -n
English
0
0
9
1.6K
Unix tool tip
Unix tool tip@UnixToolTip·
You can look for files between a pair of dates using -newermt twice: files with newer modification time than one date and not newer than another date. find . -type f -name "*.tex" -newermt "2025-03-01" ! -newermt "2025-06-01" Note the command has a bang, not a pipe.
English
1
1
16
1.8K
Unix tool tip
Unix tool tip@UnixToolTip·
Show tabs in a file: cat -T
English
0
0
8
1.4K
Unix tool tip
Unix tool tip@UnixToolTip·
The awk variable NR contains the current record number.
English
0
0
7
1.6K
Unix tool tip
Unix tool tip@UnixToolTip·
In bash, !$ expands to last word of previous command.
English
1
0
8
1.4K
Unix tool tip
Unix tool tip@UnixToolTip·
Gnu sed allows addresses of the form start~step. For example, 1~2 matches odd-numbered lines.
English
0
1
10
1.6K
Unix tool tip
Unix tool tip@UnixToolTip·
Latest edition to my Emacs config file: ;; Toggle frame maximization (when (display-graphic-p) (global-set-key (kbd "C-c m") #'toggle-frame-maximized))
English
1
0
14
2.6K
Unix tool tip
Unix tool tip@UnixToolTip·
delete from line 3 up to and including first blank line: sed 3,/^$/d filename
English
0
0
8
1.7K
Unix tool tip
Unix tool tip@UnixToolTip·
The option -w or --ignore-all-space tells diff to ignore spaces in one line even where the corresponding line has none.
English
1
0
11
1.7K
Unix tool tip
Unix tool tip@UnixToolTip·
Search man pages for a given string: man -k string
English
2
1
13
2.1K
Unix tool tip
Unix tool tip@UnixToolTip·
sed script to delete blank lines /^$/d
English
0
2
16
2.1K