Skip to content

Quoting and expansion

routinepar 2 commands

A 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.

$

The files in the sandbox, with their modes, link counts and sizes
ModeLinksSizeName
-rw-r--r--165budget.txt
-rw-r--r--169minutes.md
-rw-r--r--191receipt.txt
-rw-r--r--1135summary.txt