From: Robert C. <rob...@qu...> - 2010-01-26 18:16:12
|
Hi, On Tue, 26 Jan 2010 10:48:58 -0600 Michael Zimmermann <mic...@ia...> wrote: > If you have a lot of files to do this to, I would suggest learning at > least a little bit of perl. It might not be as nice an option as a > python tab manager (depending on your point of view), though. Or even better, try sed (the following is in a bash-type shell)! for file in *.py; sed 's/ / /g' < $file >${file}.notab In order to type the "tab" key in the command line, type the key combination "CTRL-V" followed by the Tab key. I use vim as my editor and I have it set to always use spaces and not tabs using the "expandtab" setting, so when I hit the "Tab" key, it just inserts two spaces for me. Cheers, Rob -- Robert L. Campbell, Ph.D. Senior Research Associate/Adjunct Assistant Professor Botterell Hall Rm 644 Department of Biochemistry, Queen's University, Kingston, ON K7L 3N6 Canada Tel: 613-533-6821 Fax: 613-533-2497 <rob...@qu...> http://pldserver1.biochem.queensu.ca/~rlc |