Wednesday, February 29, 2012
Wednesday, February 15, 2012
Vim color scheme
I always forgot this:
In gvim, after changing the default color scheme, the next time gvim is started, the default setting is restored.Taken from: http://vim.wikia.com/wiki/Change_the_color_scheme
To retain the color scheme add colorscheme <scheme_name> to vimrc.
For example:
colorscheme murphy
Wednesday, February 8, 2012
AWK and the here-doc string
awk '{print $1}' <<!
jack be
nimble jack be
quick.
!
jas@hardy:~/awk$ ./here.sh
jack
nimble
quick.
AWK: convert lines in a file to columns
#!/bin/bash
awk '
/Name:/, /Zip:/ { printf "%s ", $0 }
/Zip:/ { print "" }
' <<EOT
Name: John Doe
Age: 32
Zip: 60324
Name: Jane Doe
Age: 34
Zip: 54930
Name: Skippy
Age:134
Zip:23456
EOT
Wednesday, February 1, 2012
Wireshark tools
capinfos eth2_20120131_224001.pcap
editcap -i 120 eth2_20120131_224001.pcap eth2.pcap
editcap -A "2012-01-31 17:44:00" -B "2012-01-31 17:48:00" eth2_20120131_224001.pcap eth2_20120131.pcap
editcap -i 120 eth2_20120131_224001.pcap eth2.pcap
editcap -A "2012-01-31 17:44:00" -B "2012-01-31 17:48:00" eth2_20120131_224001.pcap eth2_20120131.pcap
Subscribe to:
Posts (Atom)