Suchart.Blog –> ITupstart.com

grep

TODO…

grep – print lines matching a pattern

# man grep

NAME
grep, egrep, fgrep – print lines matching a pattern

SYNOPSIS
grep [options] PATTERN [FILE…]
grep [options] [-e PATTERN | -f FILE] [FILE…]

DESCRIPTION
Grep searches the named input FILEs (or standard input if no files are named, or the file name – is given) for lines containing a
match to the given PATTERN. By default, grep prints the matching lines.

In addition, two variant programs egrep and fgrep are available. Egrep is the same as grep -E. Fgrep is the same as grep -F.

….

Exampless:

mygentoo ~ # grep ‘^[^#]’ /etc/squid/squid.conf

ให้ความเห็น »

ยังไม่มีความเห็น

RSS feed for comments on this post. TrackBack URI

ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Google+ photo

You are commenting using your Google+ account. Log Out / เปลี่ยนแปลง )

Connecting to %s

สร้างเว็บไซต์หรือบล็อกฟรีที่ WordPress.com.

%d bloggers like this: