Just ran across ack. I’d have to agree, better than grep. I like the coloring, ease of use, and compatibility with the grep flags I’m used to.
Author Archive | Brian
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 [...]
Cool news. Drupal Association: Portland here we come Oregonian: Drupal Association chooses Portland for its long-term home Nice to see any tech move to PDX.
Matt Mullenweg quotes Brent Simmons and Anne Lamott on Programming and Writing. I couldn’t agree more. I always tell newer programmers that they should spend a lot of time reading code. Read other peoples code. Read open source code. Read your own code!
I’m using ‘cleartool describe’. Passing in a format of ‘%l’ to just grab labels. The sed portions strip off the parentheses and all but the first label. Labels are ordered newest to oldest. [bash] cleartool describe -fmt ‘%l’ my_file_name.txt | sed ‘s/,.*//;s/(//;s/)//;’ [/bash]