FInd files with .so extension

kaens apatheticagnostic at gmail.com
Thu May 3 02:27:01 EDT 2007


do YOU mean hit "reply to all" not "reply?"

On 5/3/07, kaens <apatheticagnostic at gmail.com> wrote:
> do you mean
> filelst.append(i)?
>
> On 5/3/07, rishi pathak <mailmaverick666 at gmail.com> wrote:
> > May be this would work
> >  import os
> >  grep="so"
> >  dir="."
> >  lst = os.listdir(dir)
> >  filelst=[]
> >  for i in lst:
> >          if i.split(".")[len(i.split("."))-1] == grep:
> >          lst.append(i)
> >  print lst
> >
> >
> >
> > On 2 May 2007 21:58:41 -0700, pradeep nair <deepns7 at gmail.com> wrote:
> > > HI,
> > >
> > >
> > >      How do i find files with .so extension using python .
> > >
> > > --
> > > http://mail.python.org/mailman/listinfo/python-list
> > >
> >
> >
> >
> > --
> > Regards--
> > Rishi Pathak
> > National PARAM Supercomputing Facility
> > Center for Development of Advanced Computing(C-DAC)
> > Pune University Campus,Ganesh Khind Road
> > Pune-Maharastra
> > --
> > http://mail.python.org/mailman/listinfo/python-list
> >
>



More information about the Python-list mailing list