命令收集

-------

通过如下命令获得追踪信息 
$ 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



 

sed多行:

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


--------

转载于:https://my.oschina.net/plp626/blog/187284

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值