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
python standard library / CMD – autocompletion
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): [...]