One of the projects I’m working on uses ClearCase. I am developing on Windows 7, with cygwin. I edit in Vim. To get integration between Vim and ClearCase, I’m using the ccase.vim plugin. However, I need to make a couple of changes to the default to get it to work. In my _vimrc file, add [...]
Tag Archives | bash
Replace tabs in a file with two spaces with perl
Occasionally I run across a source file with tabs in it. There are many ways to remove tabs. I prefer to use perl from the command line. Replace all tabs with two spaces in a command line perl script: [bash] perl -pe ‘s/\t/ /g’ -i myFile.cpp [/bash] And, with bash, do it for all files [...]
How to parse command line arguments/parameters in C/C++/Perl/Python/Bash
This is the first of a series of simple posts highlighting programming idioms in several languages. One of the perils of programming in multiple languages regularly is that I sometimes forget simple things about a language. This series is intended as a reference for myself and others when switching back and forth between languages. There [...]