FInd files with .so extension

pradeep nair deepns7 at gmail.com
Thu May 3 02:37:35 EDT 2007


On May 3, 11:27 am, kaens <apatheticagnos... at gmail.com> wrote:
> do YOU mean hit "reply to all" not "reply?"
>
> On 5/3/07, kaens <apatheticagnos... at gmail.com> wrote:
>
> > do you mean
> > filelst.append(i)?
>
> > On 5/3/07, rishi pathak <mailmaverick... 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 <deep... 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