Saturday, January 26, 2008

Using awk, gawk to print multiple matching lines in multiple files

This basically prints the trio of source, destination and include only
when include either contains libnmt.a or libnml.a

egrep -e 'source|destination|include' *.map.xml | awk '/source/ {SRC=$0}; /destination/ { DEST=$0}; /libnmt\.a/ || /libnml\.a/ { print SRC "\n" DEST "\n" $0}'

How type @ symbol when mapped to stty EOL


Some Times you cannot use the @ symbol or other keys on the keyboard
In order to type them you can first type Ctrl-v then your symbot or keyboard key.


eg.
Ctrl-v @

Thursday, January 17, 2008

xterm color and font settings




examples:
xterm -sl 3000 -fg black -bg grey -bd orange -cr darkgreen -fn 9x15

xterm -sl 3000 -fg black -bg grey -bd orange -cr darkgreen -fn 10x24

for showing scrollbar:
xterm -fg black -bg grey -bd orange -cr darkgreen -fn 9x15 -sb -si -sl 3000


to view the fonts available use
$xlsfonts