The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers > Homework & Coursework Questions
.
google unix.com



Homework & Coursework Questions Students must use and complete the template provided. If you don't, your post may be deleted! Special homework rules apply here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Grep usage kingganesh04 UNIX for Advanced & Expert Users 1 02-26-2009 08:50 AM
how can I find cpu usage memory usage swap usage and logical volume usage alert0919 HP-UX 3 12-02-2008 02:38 PM
Grep Usage Omega1589 UNIX for Dummies Questions & Answers 5 09-29-2008 09:24 AM
Grep usage help holyearth UNIX for Dummies Questions & Answers 7 05-29-2008 05:32 PM
grep usage zp523444 UNIX for Advanced & Expert Users 2 11-14-2005 11:28 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 2 Weeks Ago
jennkat jennkat is offline
Registered User
  
 

Join Date: Nov 2009
Posts: 1
grep usage help?

Use and complete the template provided. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:

I have to find all the files where the function sequentialInsert is called and the directory is ~cs252/Assignments/commandsAsst/project

2. Relevant commands, code, scripts, algorithms:

grep

3. The attempts at a solution (include all code and scripts):

grep 'sequentialInsert' ~cs252/Assignments/commandsAsst/project/* finds all places of sequentialInsert, I just dont know how to manipulate that to just list the files


4. School (University) and Course Number: ODU cs252

Last edited by jennkat; 2 Weeks Ago at 10:51 PM.. Reason: amend question
  #2 (permalink)  
Old 2 Weeks Ago
thegeek thegeek is offline
Registered User
  
 

Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 431
I just dont know how to manipulate that to just list the files

-l is the options you are looking for.

Code:
grep -l 'PATTERN' FILES
  #3 (permalink)  
Old 2 Weeks Ago
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,650
Quote:
Originally Posted by jennkat View Post
4. School (University) and Course Number: ODU cs252
Not acceptable.

Must provide full university name, city, state, country, professor and course number.

No exceptions.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:11 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0