![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Simple Scripting Problem | felixwhoals | Shell Programming and Scripting | 3 | 12-16-2007 01:24 PM |
| Very simple argument in scripting question | eeto | UNIX for Dummies Questions & Answers | 2 | 03-27-2007 03:47 AM |
| Simple Array in Ksh Scripting | ravikirankethe | UNIX for Dummies Questions & Answers | 2 | 11-01-2006 11:35 AM |
| HELP me PLS... Simple Scripting! | liezer | Shell Programming and Scripting | 2 | 09-14-2006 10:50 AM |
| any tutorials on simple scripting? | xyyz | UNIX for Dummies Questions & Answers | 3 | 03-13-2003 01:31 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
||||
|
simple scripting question
I am new to scropting and I am just trying to work on a few simple things....
Using sh I want to do something similar to the follwoing run a simple command like a dig then I want it to get the server that it is authorotative and return it to me saying somehting like xx.xx is authorotative. I am not getting how to make it check the results and return a specific part to me how do I make it check the results it recieved and return a specific part of the results to me does this make sense? Is it possible. This is only an example of somethign I am trying to do I understand how to make it so that if a particualr event is true then do this but I dont understand how to make it check to see if that particualr even is present does this make sense let me know. |
|
||||
|
hmmm
I dont see how I could sue grep to search for a specific output when the output is going to be diffrent each time example in the case of a dig the authorative server is going to be different every time so I can't search for anythign specific. So I dont see how grep would work let me know
|
|
||||
|
post proper question ,in detail
Quote:
Pls post the question in detail,So we can give the answer. But as per my thinking you want to search specific patern in a file,then you can directly type like this : $grep (patern_name) filename |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|