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

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…

Contents