Solved

grep -trying to get it work work

Posted on 2004-08-22
2
276 Views
Last Modified: 2010-04-20

I would like to run a grep command. I type the grep command and press enter, but nothing happens, I just get a cursor that blinks. When I press CTR+C I get my cursor back, but no output.

I typed at the command prompt:
grep 10.151.253

I imagine that I need to press a special key besides enter, but I don't know what.
0
Comment
Question by:brokeMyLegBiking
2 Comments
 
LVL 23

Accepted Solution

by:
Mysidia earned 400 total points
ID: 11866819
You need to supply input to grep

either the output of another command or a filename

i.e.

grep 10.151.253  fileName

or

somecommand |grep 10.151.253

another possibility is

grep -rn 10.151.253 directory

grep -n 10.151.253 file1 file2 file3  directory/file4  /path/to/somedir/file5

or    grep -n 10.151.253 *

for that matter
0
 
LVL 4

Author Comment

by:brokeMyLegBiking
ID: 11866869
ok, thanks. That worked. I feel dumb.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question