From the course: Linux: Shells and Processes
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Globs exercise - Linux Tutorial
From the course: Linux: Shells and Processes
Globs exercise
- [Instructor] For this exercise, we'll be using the glob files directory that's included in this chapter's exercise files. You'll want to change into that directory on the command line. I extracted my exercise files into my home directory, so I'd type cd ~/exercisefiles/Ch01/globfiles and hit Enter. Before we get started matching files, let's get a listing of this directory by typing in ls -1 and hit Enter. This will list the files, and only display one file per line. We can see that we have a lot of files with various naming conventions. We have files that start with the word photo followed by a four-digit sequence number, then the date that includes the month, day, and year, and then followed by an extension of either .png or .jpg. We also have files that start with the word video, are followed by a sequence number, the date, and end with .mpg. You may also notice that some photo files are spelled with an uppercase…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
About Linux shells6m 21s
-
About Linux terminals1m 50s
-
(Locked)
Shell pathname tricks7m 7s
-
(Locked)
Shell history tricks3m 29s
-
(Locked)
Configure shell history6m 59s
-
(Locked)
Variables and shell environment5m 33s
-
(Locked)
Make shell variables persistent6m 48s
-
(Locked)
Pattern matching with globs5m 9s
-
(Locked)
Globs exercise6m 42s
-
(Locked)
Pattern matching with extended globs6m 25s
-
(Locked)
Extended glob exercise4m 22s
-
-
-
-
-