
Shell
haohappy2
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
linux shell useful command
Linux系统通过shell提供了大量方便的工具,如:awk、grep、sort、more、less、tail等等,方便程序员或者从事数据分析的人员对一些小文件的快速分析,掌握好这些工具,可以极大地提高简单数据分析的效率。 工具/原料 Linux系统 一、awk常用技巧和方法 1 文件每行按第二列去重并打印第二列不同的值及出现...原创 2014-06-18 10:54:32 · 171 阅读 · 0 评论 -
wget can't upload file through HTTPS
When using wget with https, if you get the following error: Could not seed PRNG; consider using --random-file. Disabling SSL due to encountered errors. It means that the udev daemon may be...原创 2014-08-06 16:23:48 · 756 阅读 · 0 评论 -
how to replace a file string using sed in linux
1. 已有的命令 格式: sed -i "s/查找字段/替换字段/g" `grep 查找字段 -rl 路径` linux sed 批量替换多个文件中的字符串: (此命令很强大) sed -i "s/oldstring/newstring/g" `grep oldstring -rl yourdir` 解释一下: -i 表示 i...原创 2015-03-11 14:50:57 · 257 阅读 · 0 评论 -
how to remove speical file in linux
ls -il get the inode idfind ./ -inum inode id -exec rm -rf {} \;原创 2015-03-11 15:04:45 · 118 阅读 · 0 评论 -
some problem of bash shell.
character \015 (carrage return) perl -pi.bak -e "s/\r//g;" fileencode.pl After run this command, the issue will be fixed And also find another problem, if you pass one parameters from ...原创 2014-09-01 14:56:46 · 119 阅读 · 0 评论 -
C-Shell “Variable syntax” problem
“Varible syntax” problem cause the shell can't return the value properly. #!/bin/csh set php_path = '/usr/bin/php' $php_path test.php $argv exit $? when you run this shell system("test >...原创 2014-09-16 10:46:25 · 268 阅读 · 0 评论 -
How to pass varaible from shell to PHP correctly
Sometimes, if you want to want to pass the whole "sentence" whcih with blank from shell script to another script which need to deal with the passed value, you will find that, the words has been expl...原创 2014-09-29 09:34:39 · 134 阅读 · 0 评论 -
Jenkins automatically build when SVN submit
#!/bin/bash function svn_commit() { local ret echo "$svn_msg"|grep 'v1.1.1' &> /dev/null ret=$? if [ $ret -ne 0 ] then echo "提...原创 2016-11-12 11:49:19 · 268 阅读 · 0 评论