- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 [shell] getopts使用
#!/bin/bash# Usage: ./getopts.sh -d 3 -f file a b c d# $0 :命令本身,相当于C/C++中的argv[0]# $1 :第一个参数.$2,$3,... :类推。# $# 参数的个数,不包括命令本身# $@ :参数本身的列表,不包括命令# $* :和$@相同,但"$*"将所有的参数解释成一个字符串,而"$@"是一
2016-06-27 15:47:56 413
原创 [cscope] cscope usage
$cat cscope_prj.shPWD=.find $PWD \ -type f \ -name "*.java" -o \ -name "*.proto" -o \ -name "*.c" -o
2016-06-21 11:02:07 280
原创 419 含义
419 (police code) police hundred code code for dead human bodyhttps://en.wikipedia.org/wiki/Police_code 附录CSI LingoThis page lists the meanings of the Police codes used in CSI: Las Veg
2016-06-15 11:05:54 4982
原创 [sed]直接修改文件
sed --in-place -e 's/automake --force --copy --warnings=none/automake --force --copy --warnings=none --add-missing/g' autogen
2016-06-08 11:44:32 493
原创 [libtool] autogen时AM_PATH_GLIB_2_0错误的处理
错误提示: macro 'AM_PATH_GLIB_2_0' not found in library说明对应的定义没有找到,而对应包已安装#rpm -qa|grep glib2glib2-devel-2.22.5-6.1.el6.x86_64glib2-2.22.5-6.1.el6.x86_64说明定义文件.m4没包含在autoconf的路径中
2016-06-08 11:33:35 2034
原创 [bash] shell里简单输入文件的直接读取进行批处理rpmbuild
$cat samplesTree 3.2 1 bzip,opensslWallet 2007a 323 trousersperl-devel 2.6.33 7.3 glibc$cat import.shwhile read -r name version release requires; do echo $nam
2016-06-03 19:01:16 895
原创 [yum] releasever 和 basearch变量
$rpm -q --qf "%{version}" -f /etc/redhat-release7.2$rpm -q --qf "%{arch}" -f /etc/redhat-releasex86_64
2016-06-01 17:28:30 448
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人