Getting git status on multiple directories

At any given time, I have a handful of git repositories that I work on. While typing in the command-line is great, it getting tiring when you have a several directories that you have to manually change to and check. The “git status” command can take the git repo and the working directory as input. That, and a little bash programming to the rescue. The following command, executes git status in every subdirectory that is a git repository.

Read More

Unix: removing duplicates from a file

Over the last few months, I have re-discovered some unix commands (it’s been such a long time) Eliminate duplicate lines from a file #sort -u filename > filename.new List all lines that do not match a condition #grep -v ajsk filename Copy contents of two files to one #cat file1 file2 > file3 Append output of a command to a file #cat file1 >> file2

Read More