Quoting and expansion
routinepar 2 commandsA pattern in a variable
Put *.txt in a variable, then use it so that it expands to the matching filenames.
Goal
0 / 2 commands
Put the pattern *.txt in a variable called pattern, then use it unquoted to list the matching files with echo.
$
| Mode | Links | Size | Name |
|---|---|---|---|
| -rw-r--r-- | 1 | 65 | budget.txt |
| -rw-r--r-- | 1 | 69 | minutes.md |
| -rw-r--r-- | 1 | 91 | receipt.txt |
| -rw-r--r-- | 1 | 135 | summary.txt |