Wildcard and file name variables: *? []
* Enquiry
$ ls
Doc1 DOC2 Document MyDoc Monday
$ ls doc*
Doc1 DOC2 Document
$ ls *day
Monday
RM Delete
$ ls
Doc1 DOC2 Document MyDoc Monday
$ RM doc*
MyDoc Monday
? Only a single character that is missing from the file name can be matched
$ ls
Doc1 doc2 DocA DOCB Document
$ ls doc?
Doc1 doc2 DocA DOCB
[] histograms End--range has-
$ ls
Doc1 doc2 doc3 DocA DOCB Document
$ ls DOC[1A]
Doc1 DocA
$ ls Doc[1-3]
Doc1 doc2 DOC3
*+[] Combined with
$ ls
MAIN.C MIAN.O MAIN.G main.z
$ ls*. [CZ]
MAIN.C main.z
\ When a wildcard character of a query is actually part of a file name
$ ls
Answers? Answersy? Answersk?
$ ls answers\?---query? End of File
Answers?
Standard input and output and redirection > and >>
REDIRECT >
$ ls
MyData Intro Preface
$ ls > LISTF
$ cat LISTF
MyData Intro Preface LISTF
Filter
$ ls
Doc
Linux with Notes