| 1 | #!/bin/sh
|
| 2 |
|
| 3 | # Take a look at what globbing is in unix
|
| 4 | #
|
| 5 | # $ cat * # cats out everything immediate in your folder
|
| 6 | # $ ls 1?_* # the ? matches everything to a single character,
|
| 7 | # # while the * matches it to anything. Run this
|
| 8 | # # command in the exercises/ or tests/ folder
|
| 9 | # $ ls file[abc] # matches only the characters in the brackets
|
| 10 | # # so filea fileb and filec will show
|
| 11 | # $ ls file[!AB] # matches files without A or B, so fileC and fileD
|
| 12 | #
|
| 13 | # Find a way to get a list of all the files in tests/ that are numbered
|
| 14 | # between 10 and 16 with just one line of code
|
| 15 |
|
| 16 | ls tests/[]*
|