Tag Archives: scripts

join() in AWK scripting language

Published on: Author: dariusz.cieslak Leave a comment

AWK is small but very useful Unix scripting language that is mainly aimed at text files filtering and modification. If you're on embedded device you might expect bigger brothers (as Perl / Python) are not available, but AWK is usually shipped with busybox (= small). One of missing functionalities is join() function (the opposite of… Continue reading join() in AWK scripting language

Micro-tools: Linux command line find & replace

Published on: Author: dariusz.cieslak Leave a comment

Sometimes you have to update many files at once. If you are using an IDE there is option during replace "search in all files". I'll show you how make those massive changes faster, using just Linux command line. Place this file in ~/bin/repl #!/bin/sh PATTERN="$1" FROM="$2" TO="$3" FILES=$(grep -le "$FROM" `find . -name "$PATTERN"`) echo… Continue reading Micro-tools: Linux command line find & replace

"svn status" for Perforce

Published on: Author: dariusz.cieslak 1 Comment

Status command is very important part of  any VCS (Version Control System) local interface. It allows you to check your workspace state and ensure correct commit will be created. Perforce is a commercial VCS that is similar to CVS (revisions per file) and SVN (global revisions of whole tree). It's support for status command is… Continue reading "svn status" for Perforce

Micro-tools: making developers life easier / C++ symbols

Published on: Author: dariusz.cieslak Leave a comment

Good software developers are lazy persons. They know that any work that can be automated should be automated. They have tools and skills to find automated (or partially automated) solution for many boring tasks. As a bonus only the most interesting tasks (that involve high creativity) remain for them. I think I'm lazy . I… Continue reading Micro-tools: making developers life easier / C++ symbols