Episode 3 Wildcards and grep

In this episode, we use basic wildcards to select files, and then explore how the ‘grep’ command can search for words or phrases across multiple files. As always, you can follow along using the same directory structure by downloading it from https://github.com/commandlinetv/sample-files.

10 August 2015

Time Jump Topic or command
00:25  

pipeline

00:34  

filename extension

01:17  

.tar

01:41  

.gz

02:13  

xdg-open (Linux desktop)

02:31  

mv (move or rename files)

03:08  

file (show file type)

03:54  

wildcard

04:00  

* wildcard

05:46  

? wildcard

08:23  

[] wildcard

09:15  

{} wildcard

11:34  

head (first few lines)

12:34  

grep (show matching lines)

14:49  

grep --color

15:16  

case sensitivity

15:25  

grep -i (ignore-case)

16:52  

file type, binary

17:48  

grep -s (no-messages)

18:27  

grep -r (recursive)

19:03  

grep -n (line-number)

20:04  

grep -l (files-with-matches)

21:52  

grep -c (count)

22:37  

--help

22:57  

spaces

23:04  

quoting

blog comments powered by Disqus