Solved

greg - simple

Posted on 2004-08-22
1
245 Views
Last Modified: 2010-04-21
Sorry, I am one of those windows dummies trying to use a real operating system.. Unix.


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:
grep 10.151.253



Thanks!

-brokeMyLegBiking
0
Comment
Question by:brokeMyLegBiking
1 Comment
 
LVL 38

Accepted Solution

by:
yuzh earned 300 total points
ID: 11866605
The syntax is
grep pattern filenames

eg, if you want to find "10.151.253" in a text file abc.txt, you do:

grep "10.151.253" abc.txt

man grep
to learn more details
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Oracle Finace 3 88
check unix curl command return value 7 151
replace column/record content in a *csv file based on a regular expression 6 72
Linux hostname change 2 83
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

828 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