file name expansion: vi *lastPart ?
Hi,
I have a several files in a directory with names like: xxxxxxxxxxxYYYYYYYsssssss-1.txt xxxxxxxxxYYYYssssYYYYYYY-2.txt xxxxxxxxxYYYYssssYYYYYxx-3.txt I know about tab file name completion but in this case it is still a pain. Is there a way I can open one of those files in vi by just specifying the last part of the file name, for example: vi *1.txt I'm using a bash shell. Thanks. |
That should work. Have you tried it?
|
Hi,
Like jay73 stated, that should work. There is one possible catch: If other files in the same dir end with 1.txt, they are also opened. Make sure that the expression used does not give you false hits. |
Another method available would be to hightlight the file name and paste it on the command line using the scroll wheel button.
|
Quote:
Quote:
Thanks. |
All times are GMT -5. The time now is 08:21 PM. |