Search Results

Search: Posts Made By: shephardfamily
10,555
Posted By shephardfamily
I understand that I can write a shell script but...
I understand that I can write a shell script but what is the syntax to put the time and date in a file and be able to grep all lines below that particular time that I inserted when I am comparing...
9,272
Posted By shephardfamily
Get all lines from the arlog based on the last PREVIOUS_TIME date and time.
I am trying to put this script together and I am having grave problems doing so, this is the structure:

#!/bin/sh
# Every 6 hours

# Get all lines from the arlog based on the last...
9,272
Posted By shephardfamily
Unix desired output. (Help!!!!!)
Okay I like the diff command.

diff arlog arlog.NWS | tr -d '\t ' | awk -F \| ' { print $1$2 } ' >> NEWERRORS

Next:
I would like to add: NEW TIME STAMP AT: `date` in the new file. Where can...
3,860
Posted By shephardfamily
I like this format.
Referencing the last (below) I have included:

ERRORLOG=/appl/finance/findev/ar/bin/arlog.NWS

I want to grep: grep "NEW TIME STAMP AT" $ERRORLOG

and include any data generated after date....
10,555
Posted By shephardfamily
Inserting Date&Time Stamp In Existing Log File
I am trying to insert a line with a date stamp in a file that is used to monitor activity in one of our directories. By doing this, I want to grep that file each day and go to the last entry for each...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 10:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy