The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
File Inventory Scan seacros Shell Programming and Scripting 4 03-17-2008 11:13 AM
How to scan and capture akondeti Shell Programming and Scripting 3 01-07-2008 12:10 AM
How to scan a file for literal, return 0 or 1 if found? bobk544 Shell Programming and Scripting 11 08-02-2007 04:04 PM
How to scan only new lines added in file? redlotus72 UNIX for Dummies Questions & Answers 3 04-28-2005 03:34 PM
IP Name scan nicke30 UNIX for Dummies Questions & Answers 2 07-18-2001 05:32 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 04-08-2007
Dastard Dastard is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 47
Arrow File Scan

Hi everyone , i m working on Sun solaris and i have a file "smsapp.cur" which has information like this paragraph given below , there are millions of such paragraphs

From:923212802736
To:923222326807
logMessage: 07-04-08 17:34:29 Getting message topup from code page default in language English using encoding UTF-8
logMessage: /----------------------------------------
logMessage: |RESPONSE: (139)

logMessage: |----------------------------------------
logMessage: |0000: 44 65 61 72 20 63 75 73 74 6f 6d 65 72 2c 20 61 Dear customer, a
logMessage: |0016: 63 63 6f 75 6e 74 20 39 32 33 32 32 32 33 32 36 ccount 923222326
logMessage: |0032: 38 30 37 20 68 61 73 20 62 65 65 6e 20 73 75 63 807 has been suc
logMessage: |0048: 63 65 73 73 66 75 6c 6c 79 20 74 6f 70 70 65 64 cessfully topped
logMessage: |0064: 20 75 70 20 77 69 74 68 20 52 73 20 37 30 2e 30 up with Rs 70.0
logMessage: |0080: 30 2c 20 79 6f 75 72 20 6e 65 77 20 61 63 63 6f 0, your new acco
logMessage: |0096: 75 6e 74 20 62 61 6c 61 6e 63 65 20 69 73 20 52 unt balance is R
logMessage: |0112: 73 20 36 39 35 2e 38 33 2e 20 52 45 46 49 44 3a s 695.83. REFID:
logMessage: |0128: 20 32 32 38 31 33 39 37 38 34 2e 228139784.
logMessage: \----------------------------------------
logMessage: 07-04-08 17:34:29 Sending message to 923212802736
STKApp:run()::Sun Apr 08 17:34:29 PKT 2007::INBOX MESSAGES Length:1
logMessage: 07-04-08 17:34:29 Using product: P2P topup SKU:72
logMessage: 07-04-08 17:34:29 STKRequestProcessor:run()::Entered before calling processMessage()
logMessage: 07-04-08 17:34:29 SMSRequestProcessor: From: 923214330174, Message: B 03224906929 20
logMessage: type=B
msisdn=03224906929
amount=20

Amount:Rs 20.00




Now what i want is that somehow i only get responce code line ( which i have set as italic ) between certain time stamps like since yesterdays 04:00 pm till todays 03:00 AM

i have tried something like this

function while_read_LINE
{
cat $FILENAME | while read LINE
do
find "RESPONCE" $LINE > responce.txt
:
done
}

but i donno how to cater time stamp

Regards and Thanks
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:51 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0