摘要: 文本内容:$cat test.txt0010020030040050060000999需要格式化成:001 002 003 004 005 006 0000999方法一、最好的答案是waker老大提供的,就不解释了:xargs < test.txt语法: "命令 < 文件" 这是将文件作为命... 阅读全文
posted @ 2014-01-22 18:26 前行者2011 阅读(111) 评论(0) 推荐(0) 编辑
摘要: [root@centos var]# service mysqld stopMySQLmanager or server PID file could not be found![FAILED]解决办法:首先查看一下进程[root@irxpert-test/]# ps aux |grep mysq*... 阅读全文
posted @ 2014-01-22 16:29 前行者2011 阅读(126) 评论(0) 推荐(0) 编辑
摘要: MySQL问题解决:-bash:mysql:command not found问题: [root@linux115 /]# mysql -uroot -p -bash: mysql: command not found 因为mysql命令的路径在/usr/local/mysql/bin下面,... 阅读全文
posted @ 2014-01-22 16:00 前行者2011 阅读(145) 评论(0) 推荐(0) 编辑
摘要: xargs是一个非常强大的命令,可以将一个命令的输出,作为另一个命令的参数。这个非常有用,举例如下:实例1:当你想下载一些URL,这些URL都保存在一个文件里,你可以以如下的方式使用xargs命令# cat url-list.txt | xargs wget –cxargs将cat命令的输出,作为w... 阅读全文
posted @ 2014-01-22 15:13 前行者2011 阅读(184) 评论(0) 推荐(0) 编辑