P
pradeep nair
HI,
How do i find files with .so extension using python .
How do i find files with .so extension using python .
HI,
How do i find files with .so extension using python .
do you mean
filelst.append(i)?
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
HI,
How do i find files with .so extension using python .
--
Regards--
Rishi Pathak
National PARAM Supercomputing Facility
Center for Development of Advanced Computing(C-DAC)
Pune University Campus,Ganesh Khind Road
Pune-Maharastra
do YOU mean hit "reply to all" not "reply?"
do you mean
filelst.append(i)?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
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
HI,
How do i find files with .so extension using python .
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.