1、make: warning: Clock skew detected. Your build may be incomplete. 解决办法 [oracle@localhost am]$ find . -type f | xargs -n 5 touch [oracle@localhost am ...
分类:
其他好文 时间:
2017-07-31 20:06:42
阅读次数:
126
查找文件夹下的全部文件里是否含有某个字符串 find .|xargs grep -ri "IBM" 查找文件夹下的全部文件里是否含有某个字符串,而且仅仅打印出文件名称 find .|xargs grep -ri "IBM" -l 1.正則表達式 (1)正則表達式一般用来描写叙述文本模式的特殊使用方法 ...
分类:
系统相关 时间:
2017-07-23 22:32:47
阅读次数:
163
[was@dmgr ita-scripts]$ vi java_analys.sh PID=$1 ; ps -mp $PID -o THREAD,tid,time | awk -F " " '{print $2" "$8}' | grep -v CPU | grep -v "-" | sort -n ...
分类:
编程语言 时间:
2017-07-22 19:35:06
阅读次数:
204
Xargs用法详解1. 简介 xargs是给命令传递参数的一个过滤器,也是组合多个命令的一个工具。它把一个数据流分割为一些足够小的块,以方便过滤器和命令进行处理。通常情况下,xargs从管道或者stdin中读取数据,但是它也能够从文件的输出中读取数据。xargs的默认命令是echo,这意味着通过管道 ...
分类:
其他好文 时间:
2017-07-21 20:40:38
阅读次数:
282
#!/bin/sh # # chkconfig: 345 99 01 # description: Kafka # # File : Kafka # # Description: Starts and stops the Kafka server # source /etc/rc.d/init.d/ ...
分类:
系统相关 时间:
2017-07-20 18:55:05
阅读次数:
219
1. 检查是否安装yum包[root@node1 rpms]# rpm -qa|grep yum 2. 删除自带的yum包[root@node1 rpms]# rpm -qa|grep yum|xargs rpm -e --nodeps因为一些包之间可能会有依赖关系,所以我们需要加上参数 --nod ...
分类:
其他好文 时间:
2017-07-19 14:44:26
阅读次数:
180
/usr/local/tomcat7/bin/shutdown.sh sleep 5 #具体时间就看你得webapp在调用shutdown.sh后多久后处于僵死状态 ps -ef | grep 'tomcat' | grep -v grep| awk '{print $2}' | xargs kil... ...
分类:
其他好文 时间:
2017-07-13 10:44:45
阅读次数:
110
折腾两天, 前领导留下的烂摊子,前天忽然挂掉了, 整个公司就我会linux, 奶奶的, 一言难尽。 下面记录下怎么安装mongodb, 前面是从菜鸟教程复制来的 1. 下载 2. 解压安装 3. 环境变量 <mongodb-install-directory> 为你 MongoDB 的安装路径。如本 ...
分类:
数据库 时间:
2017-07-12 18:48:13
阅读次数:
244
rpm -qa | grep 'php' | xargs rpm -e rpm --erase `rpm -qa | grep php` rpm -e $(rpm -qa |grep 'php') yum remove 'php*' ...
分类:
其他好文 时间:
2017-07-09 18:16:06
阅读次数:
121
两个文件如下:[root@oldboy~]#cat1.txt
111
222
333
[root@oldboy~]#cat2.txtAAA
bbb
ccc
ddd要求修改后的文件[root@oldboy~]#cat2.txt
AAA
bbb
ccc
222
333
ddd
``参考答案:方法1:[root@oldboy~]#sed-n2,3p1.txt|xargs|sed-r‘s##\\n#g‘|sed-r‘s#.*#sed-i"3a&"2.txt#g‘|..
分类:
其他好文 时间:
2017-07-04 23:24:03
阅读次数:
196