gdb 脚本

C程序: /* 编译:$gcc -g3 -o gs this_file.c */ #include int main(void) { int x = 3; if (x < 4) printf("AAAA\n...

2013-04-24 18:15:02

阅读数:1637

评论数:0

我的shell脚本库

1. 文件批量重命名 因为所用相机保存的照片格式为 *.JPG,但是要上传到QQ空间时只认识 *.jpg格式 所以转到所在目录下,执行如下脚本,以批量修改文件扩展名为*.jpg #!/bin/bash # # This script is used to change the...

2012-04-04 00:10:22

阅读数:722

评论数:0

c函数中执行shell 命令

在c函数中执行shell 命令 并获得命令的返回值 #include #include int main(void) { int ret = -1; FILE* pf; /* Can not get the output of the cmd */ re...

2011-12-09 01:03:05

阅读数:1307

评论数:0

sed

another_file: text from another file! t_file: a bb ccc Joseph joseph last line date: 12-11-2011 DATE:12/11/2011   1 2 3 4 5 ...

2011-11-30 00:19:38

阅读数:1099

评论数:0

compare operation in shell

compare: #!/bin/bash debug=1 tf=1 string="abc" test $debug -eq 1 && { echo "hello, test" echo "hello, more&q...

2011-11-29 00:38:29

阅读数:539

评论数:0

shell function

====================== Use function in your script: = ====================== fun: #!/bin/bash #function defination func() { echo "...

2011-11-27 21:29:52

阅读数:1050

评论数:0

Regular Expression

//test aaaa lover xxxxxx good goood goXXod joseph is a good man Joseph is a bad student Ai Bi Ci auto. Amy, you are my lovable+lover ababab space ...

2011-11-27 20:58:54

阅读数:689

评论数:0

private[1]

<br />#!/bin/bash myfun() { echo -e "read/n" i=1 minus=0 max=-32768 min=32767 avr=0 totel=0 num=`cat "$1"|wc -l` ...

2010-08-25 19:52:00

阅读数:535

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭