What other wildcards can I use?
The shell has other wildcards as well, though they are less commonly used:
?matches a single character, so201?.txtwill match2017.txtor2018.txt, but not2017-01.txt.[...]matches any one of the characters inside the square brackets, so201[78].txtmatches2017.txtor2018.txt, but not2016.txt.{...}matches any of the comma-separated patterns inside the curly brackets, so{*.txt, *.csv}matches any file whose name ends with.txtor.csv, but not files whose names end with.pdf.
Which expression would match singh.pdf and johel.txt but not sandhu.pdf or sandhu.txt?
Questo esercizio fa parte del corso
Introduction to Shell
Esercizio pratico interattivo
Passa dalla teoria alla pratica con uno dei nostri esercizi interattivi
Inizia esercizio