-------
通过如下命令获得追踪信息
$ gdb `whereis wireshark | cut -f2 -d: | cut -d' ' -f2` core >&bt.txt
backtrace
^D
$
## putty ssh
putty -pw ******* XXX@192.168.X.X
$cat a.txt
a
b
c
b
b
c
a
#只显示重复的相邻行
$uniq -d a.txt
b
#如果有重复相邻行, 只显示一次; (在排序的情况下同sort -u)
$unit a.txt
a
b
c
b
c
a
#不显示重复相邻行
$uniq -u a.txt
a
b
c
c
a
http://asmboy001.blog.51cto.com/340398/184111/
http://www.fwolf.com/blog/post/346
http://scmbob.org/sed_cross_match.html
sed 例子:
http://www.sudu.cn/info/html/edu/20080101/282997.html
http://blog.chinaunix.net/uid-20464539-id-1673135.html
zjw@ubuntu:~$ alias cdls='cdls(){ cd $1; ls; };cdls '
zjw@ubuntu:~$ cdls test
a.c a.out
gdb --ex
http://www.cppblog.com/sunicdavy/archive/2012/12/29/196809.html
http://www.91linux.com/html/article/program/20090224/15859.html
http://blog.chinaunix.net/uid-10540984-id-3508235.html
Linux命令行下输入:
arm-linux-gdb -x .gdbinit -ex "192.168.56.1 2331" u-boot
--------