
February 7th, 2013, 01:28 AM
|
|
Registered User
|
|
Join Date: Feb 2013
Posts: 1
Time spent in forums: 8 m 56 sec
Reputation Power: 0
|
|
|
Other - Bash: list only certain files
Hi
I think I have a temporary lapse of reason...
I cant figure out how to list only files that have only 7 digits in their names and all end in .txt.
like 7654321.txt or 4532123.txt
I don't want to list files that have not exactly y digits in their name.
I tried:
ls [0-9]{7}.txt
but it doesn't work
ls [0-9]*.txt
works but returns of course any number of digits in the file name (not what I want)
Please advise.
Thanks
|