Linux
snowy_day
这个作者很懒,什么都没留下…
展开
-
linux常用命令
在多个文件中进行字符串替换 find path -name '*.txt' -type f -exec sed -i s/123/321/g {} + path:find命令所查找的目录路径 -exec:find命令对匹配的文件执行该参数所给出的shell命令 {}: find的结果集合 在一个目录下查找字符串 grep word * -R原创 2014-12-11 13:38:51 · 256 阅读 · 0 评论 -
vim编辑常用命令
vim配置文件 :vimrc 普通模式下常用命令 :s/foo/bar/g change each 'foo' to 'bar' in the current line :%s /foo/bar/g change each 'foo' to 'bar' in all lines :123[Enter]原创 2014-12-10 12:22:38 · 291 阅读 · 0 评论 -
Debug With GDB: Segmentation Fault Example
原文链接:http://www.unknownroad.com/rtfm/gdbtut/gdbsegfault.html We are going to use gdb to figure out why the following program causes a segmentation fault. The program is meant to read in a line of tex转载 2015-03-09 16:24:54 · 419 阅读 · 0 评论