|
|
|
|
|
by adrian_b
733 days ago
|
|
Brackets have a special meaning in the UNIX shell since the earliest times. Together with "*" and "?", the brackets "[" and "]" have been used by the UNIX shell since some of its earliest versions (already many years before the Bourne shell) in pattern matching for pathname expansion (globbing). For example, if you have in a directory 3 files named "file1", "file2" and "file3", then "ls file?" will output file1 file2 file3 while "ls file[13]" will output file1 file3 |
|