Which command returns all files that end with a single digit and have the TXT extension ?
|
One of the most basic tools for locating files (or other kinds of nodes) is the
This will search:
If there are files whose name is only a digit followed by
Note that this will be case sensitive. If you would like an insensitive match, you can use |
||||
|
|
Using plain old POSIX globs:
|
|||||||||
|
|
In zsh, with
If your file names don't begin with
Replace
If you want to see files in subdirectories as well, add
|
|||
|
|

filename34.txtor justfilename4.txt(single digit) or only file names that are a single digit like4.txt? Please use the edit function to make your question more specific so we can adapt our answers. Right now everybody is guessing what you want. Some effort from you to explain the situation will help you get better answers. – Caleb Nov 17 '12 at 17:53