码迷,mamicode.com
首页 >  
搜索关键字:grep -E    ( 10985个结果
grep -q
grep -q用于if逻辑判断 安静模式,不打印任何标准输出。如果有匹配的内容则立即返回状态值0。zzx@sdcm152:~$ cat at.txt 04:55:00 up 12:02, 0 users, load average: 0.00, 0.01, 0.05zzx@sdcm152:...
分类:其他好文   时间:2014-10-23 12:10:06    阅读次数:241
Linux下yum配置
1.yum安装 CentOS默认已经安装了yum,不需要另外安装。 1.查看系统默认安装的yum #rpm -qa|grep yum 系统中已经安装了yum,接下来我们来配置yum本地源。 2.配置yum本地源 1)挂载系统安装光盘 #mount /dev/cdrom /mnt/cdrom 如果挂....
分类:系统相关   时间:2014-10-22 21:35:17    阅读次数:303
ubuntu安装openssh-server
ubuntu自带的有openssh-client,所以可以通过 ssh username@host 来远程连接linux 可是要想通过ssh被连接,ubuntu系统需要有openssh-server,可以通过 ps -e | grep ssh 来查看,如果没有显示sshd则说明没有安装opens...
分类:系统相关   时间:2014-10-22 18:37:17    阅读次数:243
VMware 总结安装脚本
###custconfigurations###P_SN=`esxclihardwareplatformget|grep"SerialNumber"|awk-F":"‘{print$NF}‘|sed‘s///g‘`P_NAME=`esxclihardwareplatformget|grep"ProductName"|awk-F":"‘{print$NF}‘`wgethttp://10.10.10.10/config/newserverLOCAL_IPADDR=`catnewserver|grep$P_SN|a..
分类:系统相关   时间:2014-10-22 18:29:40    阅读次数:708
批量ping测试脚本
ping测试脚本#!/bin/bash list=iplist.txt log=ping.log echo-n"">$log #清空历史日志 grep-v"#"$list|grep-v"^$">.list #从$list文件中读出ip地址列表,去掉包含#的行和空行,结果写入.list whilereadIP do echo"$IP`ping-s1000-f-c100$IP|greptransmitted|awk‘{print$6..
分类:其他好文   时间:2014-10-22 18:28:47    阅读次数:188
Windows下adb命令中grep使用问题
自己找了半天,菜鸟的我也终于找到了一个软件解决了此问题。希望可以帮助以后要用到的人。已下内容在互联网上寻找的。如有问题,可以留言。一起解决。cygwin下载地址:百度云盘。http://pan.baidu.com/s/1c0eXgNQcygwin是一个在windows平台上运行的unix模拟环境,是...
分类:数据库   时间:2014-10-22 17:54:44    阅读次数:545
linux下批量替换文件内容
1、网络上现成的资料 格式: sed -i "s/查找字段/替换字段/g" `grep 查找字段 -rl 路径` linux sed 批量替换多个文件中的字符串 sed -i "s/oldstring/newstring/g" `grep oldstring -rl yourdir` 例如:...
分类:系统相关   时间:2014-10-22 17:52:40    阅读次数:256
Unix/Linux 'dirctory tree' command.
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'It seems useful as a upgrade version of 'ls -R'
分类:系统相关   时间:2014-10-22 17:30:49    阅读次数:221
linux ps常用命令
1. linux下获取占用CPU资源最多的10个进程,可以使用如下命令组合:? ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head ? 2. linux下获取占用内存资源最多的10个进程,可以使用如下命令组合:? ?ps au...
分类:系统相关   时间:2014-10-22 14:46:23    阅读次数:200
php 获取 mime type 类型,fileinfo扩展
背景:version > /usr/local/php/lib/php.ini3、验证php -m | grep fileinfofileinfo备注:1、安装软件注意查看 ./configure --help 其中会指出库或头文件的依赖2、扩展移植,查看依赖,移植需要注意对:libmagic......
分类:Web程序   时间:2014-10-22 12:34:27    阅读次数:192
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!