Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Blogs
User Name



bashrc tweak - colors in ssh ession

Posted 09-10-2012 at 01:06 PM by NullTerminator
Updated 09-18-2012 at 09:39 AM by NullTerminator

If you use any of a number of remote ssh clients and want to improve the color selection, here's a how to. Please credit the original authors. I'm just making it easier to find.

excellent ref @
 1. Edit the '.bashrc' file. You need to make a few small changes to the existing bash script.

(optional) Backup the file. Copy your existing '.bashrc' file in case you wish to restore it at a latter time. For
LQ Newbie
Posted in Uncategorized
Views 735 Comments 0 NullTerminator is offline

bash sort using a tab delimiter

Posted 09-07-2012 at 01:49 PM by NullTerminator
Updated 09-07-2012 at 02:49 PM by NullTerminator
Tags bash, sort, tab

There are several ways to sort things when fields are tab separated. The simplest I have found is
TAB=`echo -e "\t"`
sort -t"$TAB" -k 5,3 scrambledFile.tsv > sorted.tsv
syntax may vary for dos shells, possibly as
set tab=echo "\t"
sort -t"%tab%" -k5,3 scrambledFile.tsv > sortedFile.tsv
As of this posting, both variations are subject to verification of the syntax.
LQ Newbie
Posted in Uncategorized
Views 583 Comments 0 NullTerminator is offline

Log4j Message Filtering

Posted 09-07-2012 at 12:54 PM by NullTerminator
Updated 09-13-2012 at 12:27 PM by NullTerminator

Some Notes on built in filtering facility
org.apache.log4j.varia.StringMatchFilter - this is a "contains" match paradigm.
Followup: This actually uses the indexOf method for matching, so it acts like a "contains" match, and IS CaseSensitive.

possible specification in an appender tag
extend from an example at
LQ Newbie
Posted in Uncategorized
Views 718 Comments 0 NullTerminator is offline

Spring Refs And Tutorial Links

Posted 08-31-2012 at 08:11 PM by NullTerminator
Updated 11-29-2012 at 09:08 AM by NullTerminator


good spring MVC tutorial
// sidebar on dispatcher servlet

Spring Beans For Collections - Good Examples list, set, map properties example/

More specific control over the implementation...
LQ Newbie
Posted in Uncategorized
Views 471 Comments 0 NullTerminator is offline

Spring Ramblings

Posted 08-31-2012 at 08:02 PM by NullTerminator

DispatcherServlet in the distribution is used out of the box in a Front Controller pattern. Based on URL patterns specified in the config xml it passes the request to a controller
LQ Newbie
Posted in Uncategorized
Views 180 Comments 0 NullTerminator is offline


All times are GMT -5. The time now is 10:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration