Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Scripting

Avatar of nicky s
nicky sFlag for United States of America asked on
System ProgrammingShell Scripting
6 Comments1 Solution664 ViewsLast Modified:
I want to a script that extracts the all the entries between start time and end time from a given input file to a new text file... the sample file contains the following entries..

161.169.73.129 - - [22/Feb/2010:09:41:16 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 617 - -        - - - -
161.169.73.129 - - [22/Feb/2010:09:50:17 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 1409 - -        - - - -
161.169.73.129 - - [22/Feb/2010:09:55:18 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 593 - -        - - - -
161.169.73.129 - - [22/Feb/2010:10:20:19 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 1292 - -        - - - -
161.169.73.129 - - [22/Feb/2010:10:23:20 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 642 - -        - - - -
161.169.73.129 - - [22/Feb/2010:10:24:21 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 1277 - -        - - - -
96.17.166.164 - - [22/Feb/2010:10:26:22 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "FirstFlowAgent" /hc/hc.htm 685 - -        - - - -
161.169.73.129 - - [22/Feb/2010:10:26:22 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 456 - -        - - - -
161.169.73.129 - - [22/Feb/2010:10:28:23 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 1276 - -        - - - -
72.246.16.69 - - [22/Feb/2010:10:30:23 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "FirstFlowAgent" /hc/hc.htm 499 - -        - - - -
161.169.73.129 - - [22/Feb/2010:10:32:24 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 561 - -        - - - -
161.169.73.129 - - [22/Feb/2010:10:36:25 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 1304 - -        - - - -
161.169.73.129 - - [22/Feb/2010:10:38:26 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 603 - -        - - - -
161.169.73.129 - - [22/Feb/2010:10:40:27 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 1358 - -        - - - -
161.169.73.129 - - [22/Feb/2010:10:40:28 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 607 - -        - - - -
161.169.73.129 - - [22/Feb/2010:10:41:29 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 1335 - -        - - - -
161.169.73.129 - - [22/Feb/2010:15:42:30 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 719 - -        - - - -
161.169.73.129 - - [22/Feb/2010:15:44:31 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 1284 - -        - - - -
80.67.75.14 - - [22/Feb/2010:15:10:32 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "FirstFlowAgent" /hc/hc.htm 678 - -        - - - -
161.169.73.129 - - [22/Feb/2010:15:15:32 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 448 - -        - - - -
204.2.159.188 - - [22/Feb/2010:15:20:32 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "FirstFlowAgent" /hc/hc.htm 493 - -        - - - -
161.169.73.129 - - [22/Feb/2010:15:25:33 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 1281 - -        - - - -
161.169.73.129 - - [22/Feb/2010:16:32:34 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 607 - -        - - - -
161.169.73.129 - - [22/Feb/2010:16:38:35 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 1433 - -        - - - -
161.169.73.129 - - [22/Feb/2010:16:40:36 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 591 - -        - - - -
161.169.73.129 - - [22/Feb/2010:16:54:37 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 1234 - -        - - - -
161.169.73.129 - - [22/Feb/2010:16:02:38 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 591 - -        - - - -
161.169.73.129 - - [22/Feb/2010:16:09:39 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 1273 - -        - - - -
161.169.73.129 - - [22/Feb/2010:17:17:40 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 604 - -        - - - -
96.17.166.165 - - [22/Feb/2010:17:22:40 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "FirstFlowAgent" /hc/hc.htm 662 - -        - - - -
161.169.73.129 - - [22/Feb/2010:17:26:42 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 1403 - -        - - - -
161.169.73.129 - - [22/Feb/2010:17:35:42 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 602 - -        - - - -
72.246.194.165 - - [22/Feb/2010:17:39:42 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "FirstFlowAgent" /hc/hc.htm 499 - -        - - - -
161.169.73.129 - - [22/Feb/2010:17:40:43 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 1304 - -        - - - -
161.169.73.129 - - [22/Feb/2010:17:40:44 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 615 - -        - - - -
161.169.73.129 - - [22/Feb/2010:18:05:45 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 1555 - -        - - - -
72.247.123.46 - - [22/Feb/2010:18:10:45 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "FirstFlowAgent" /hc/hc.htm 629 - -        - - - -
161.169.73.129 - - [22/Feb/2010:18:15:46 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 605 - -        - - - -
161.169.73.129 - - [22/Feb/2010:18:20:47 +0000] "GET /hc/hc.htm HTTP/1.1" 200 296 "-" "-" /hc/hc.htm 1242 - -        - - - -




For example i need the entries in between the time interval 09:50:16 to  16:39:36  


apache.txt
ASKER CERTIFIED SOLUTION
Avatar of simon3270
simon3270Flag of United Kingdom of Great Britain and Northern Ireland image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answers