Remove empty files from input file
Posted: Wed Jun 05, 2013 12:52 am
Hi,
I have a input file which inturn has around 2000 file names. My requirement is to skip all the empty files and copy the file names which ahs data into another file.
e.g
My input file xxx.yyy.xxx, the content is
aaa.bbb.ccc
ddd.eee.fff
ggg.hhh.iii
If the first file is empty and the last two files has some data, my output file should have
ddd.eee.fff
ggg.hhh.iii
Please help.
Thanks,
Kavita
I have a input file which inturn has around 2000 file names. My requirement is to skip all the empty files and copy the file names which ahs data into another file.
e.g
My input file xxx.yyy.xxx, the content is
aaa.bbb.ccc
ddd.eee.fff
ggg.hhh.iii
If the first file is empty and the last two files has some data, my output file should have
ddd.eee.fff
ggg.hhh.iii
Please help.
Thanks,
Kavita