![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2005
Posts: 1
Rep Power: 0
![]() |
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? ![]() |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4
![]() |
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|