The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 05-17-2008
amatuer_lee_3 amatuer_lee_3 is offline
Registered User
 

Join Date: May 2008
Posts: 53
please see other post:

My menu function [new code -revised]

But in reply to your questions: .hits files are numerous files populated with hundres of rows in the format:

Code:
137.44.2.8 	Mon 		Feb 4 		22:02:35 GMT 2008
149.192.2.81 	Mon 		Feb 4 		23:22:12 GMT 2008
132.53.17.171 	Tue 		Feb 5 		01:56:16 GMT 2008
I have scripts that search sepearetly for the date month and year to output the results into a tempfile. Thus limiting the results from all the hits files.
I am using a grep command to do so.

Secondly I use the case command to validate all of these inputs the user makes.

The reason i have not grouped it all together, is because i dont know how. Unlike most "students" on here i tend to only use what i understand or know. compared to people who just post hwk on here, and if i need help with a command then i come to here. Although this has nothing to do with coursework, and is just a mess about task for me to help me with my placement for next year where i will be having unix and perl experience.

I am a complete beginner to this. The reason there are pauses is because its just so i can see if everything runs ok and it gives me time to look at it.

If you refer to the link above you will see the problem. I want my "option 2" in my menu to ignore the stuff i already have in place, and run something else in the same script.

Sorry to be such a lamen about this whole thing but its the first time ive extensively used UNIX.

Last edited by amatuer_lee_3; 05-17-2008 at 07:33 PM.
Reply With Quote