R
Rider
Hi experts,
I have this file, inut.txt (listed below). each line in the file has
more than 10 fields, but I am just listing a sample format here.
I need to print out only the filenames that are ending with .txt in
the output..
The output should be:
===============
unixFile1.txt
unixFile2.txt
unixFile3.txt
....
...
===============
I am looking out for a shorter form of a reg exp to extract only the
file names in to the output here. I do the basic perl coding on an
occasional basis, but don't know the right reg exp to do it.
Thanks in advance,
J
Here is the input file.
===================
1, bob, usr/tst/unixFile1.txt, boston, text1, text2, text3
2, bob, usr/tst/unixFile2.txt, boston, text1, text2, text3
3, bob, usr/tst/unixFile3.txt, boston, text1, text2, text3
......
.....
===================
I have this file, inut.txt (listed below). each line in the file has
more than 10 fields, but I am just listing a sample format here.
I need to print out only the filenames that are ending with .txt in
the output..
The output should be:
===============
unixFile1.txt
unixFile2.txt
unixFile3.txt
....
...
===============
I am looking out for a shorter form of a reg exp to extract only the
file names in to the output here. I do the basic perl coding on an
occasional basis, but don't know the right reg exp to do it.
Thanks in advance,
J
Here is the input file.
===================
1, bob, usr/tst/unixFile1.txt, boston, text1, text2, text3
2, bob, usr/tst/unixFile2.txt, boston, text1, text2, text3
3, bob, usr/tst/unixFile3.txt, boston, text1, text2, text3
......
.....
===================