Quote the Pattern
Easy · Quoting · Quoting · Globbing
Problem
Two files exist: notes.txt and todo.txt.
Print the pattern *.txt literally on the first line, then let the shell expand it on the second, so the two filenames appear separated by a space.
Approaches
- Quote, then don't
Related problems
Start free on Cariara · Coding problems · System design studio