Grep Command

grep -ir word *

Search all files for keyword "word" in current folder and sub-folders

grep -ir -e word1 -e word2 *

Search all files for keyword "word1" or "word2" in current folder and sub-folders

grep -v word

Search all files exclude keyword "word" in current folder and sub-folders

cat file | grep -o '[^:]*$'

cat the file and using grep to find the last field (cut ":" )



Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.