Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 29th, 2005, 6:40 AM   #1
koulik
Newbie
 
Join Date: Apr 2005
Posts: 1
Rep Power: 0 koulik is on a distinguished road
script xgrep

Hi, I need help.
I have to write this homework...

"Write program xgrep, which will print files containing/not containing given string. Rules for file search should be same as for command find. Program should search both text and binary files."

can you help me please?
koulik is offline   Reply With Quote
Old May 1st, 2005, 5:13 PM   #2
mackenga
Professional Programmer
 
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4 mackenga is on a distinguished road
Something tells me you haven't really had a crack at this yourself.

People around here don't tend to be keen to do other peoples' homework, it's only fair to tell you, but if you have a shot and have specific questions, then fine.

You haven't really given enough information to take this any further. For one thing, I strongly suspect you've posted it in the wrong place; the way to do this using a shell script would arguably be a near-one-liner calling grep - an existing program which'll be installed nearly everywhere a shell is installed, and which does what the specification asks for and then some.
mackenga is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:48 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC