Hello everyone,
When using dir command to list all the files in a directory, for example, here is an output,
--------------------
C:\temp\test>dir
Volume in drive C is C
Volume Serial Number is CC95-21FF
Directory of C:\temp\test
2006-08-26 16:47 <DIR> .
2006-08-26 16:47 <DIR> ..
2006-08-26 16:47 0 foo.txt
2006-08-26 16:47 0 goo.txt
2 File(s) 0 bytes
2 Dir(s) 3,082,964,992 bytes free
--------------------
What I want to get are, foo and goo (files ends with .txt). I know how to do this in a programming way, parsing and parsing ... :-)
Could anyone have any ways which does not need programming, for example, by using some Windows commands (does there are any commmad like grep or cut on Linux)?
thanks in advance,
George