用grep搜索文档中的字符串

grep -F YOURSTRING-Rpath


quota:已用,可用空间(包括已用),最大空间(超过可用空间的部分必须在n天之内清理)


#!/bin/sh

PATH=/cygdrive/c/ARM/RVCT/Programs/2.2/503/win_32-pentium:$PATH


echo PATH=/usr/lib/jvm/java-1.5.0-sun:$PATH


*******************************START*********************************************
The file is in the end, and the channel is in the front of 'grep','awk',or 'sed',
(要么把文件名放在最后,要么把通道的输出放在最前面)

grep -E "kjklmn|kejian|root" passwd
grep -E 'kjklmn|kejian|root' passwd
awk -F=":" '{if ($1~/root/ || $1~/kejian/ || $1~/kjklmn/ ) print $0}' passwd
awk -F=":" '/^root/||/^kejian/||/^kjklmn/' passwd
ls -l | awk  '{if ($4~/root/) print $0}'
grep -E '^kjklmn|^kejian|^root' passwd
sed -n 's/dear/ baby  &/p' sed.txt  
echo "honey" | sed 's/on/in/'
find . -name .svn -type d -exec rm -fr {} \;

********************************END**********************************************


你可能感兴趣的:(File,文档,Path)