Monday, August 01, 2011

i did this. and this too.

this is effin spot on !!!
http://tomu.imgur.com/graffiti__streetart

for i in `find . -name *.java | xargs wc -l | awk '{ print $1 }' `; do echo ===============; a=`expr $a + $i`; echo $a; done


map( lambda x : x[:-len('.xml')].lower().replace('-','_')+'_ITCase.java' ,[x.strip() for x in os.listdir('.') if x[-len('.xml'):] == '.xml' and not x == ''])


the first one's just so so. gives kloc
the second one's simple, if you format it out.

is the same as

[ j[:-len('.xml')].lower().replace('-','_')+'_ITCase.java' for j in [x.strip() for x in os.listdir('.') if x[-len('.xml'):] == '.xml' and not x == '']]

0 Comments:

Post a Comment

<< Home