handling white space in file names
No Comments

Posted by perkins on 18 September 2010 in IT | Short Link

The only way to handle spaces in file names is the application of ‘find’ program: find . -type f|grep .ext$ |while read file do /do/something/to “$file” done

Tags: ,

python standard library / CMD – autocompletion
No Comments

Posted by perkins on 25 January 2009 in IT | Short Link

Standard documentation on the site (http://docs.python.org/library/cmd.html) left a lot of questions on the subject. Furtunately, the basic googling brought me here , where simple example allowed me to go through: import cmd addresses = [     'here@blubb.com',     'foo@bar.com',     'whatever@wherever.org', ] class MyCmd(cmd.Cmd):     def do_send(self, line):       [...]

Tags: , , ,

Copyright © 2006-2012 dimonf All rights reserved.
The Shades theme, version 1.8, is a BuyNowShop.com creation.