my sample file is like this
i want to grep the lines between 05/22/18 to 05/23/18
I tried with sed
but it does not work.
I tried with grep -e
it too did not work complaining about illegal option -e
PLease help !!
Your statement describing what output you want is ambiguous. The only line between the first occurrence of 05/22/18 and 05/23/18 is the single line:
Is that what you want?
Saying that you tried something "but it does not work" does not give us much help in trying to guess what did not work. Did it produce diagnostic messages? Did it give no output? Did it give the wrong output?
What shell and operating system are you using? The command:
should not complain about an invalid -e option. It should just wait for you to type in data to be processed and print out any lines that contain either of those strings (but, of course, that does not meet any requirements about finding lines between anything).
Can someone please help me with searching a string during a specific time frame. Below is the format of the time from my log file.
"GET /AAM2009_wherewereheaded.wmv HTTP/1.1" 200 52307085
The search string I need is "AAM2009_wherewereheaded.wmv"
I need to search the number of... (1 Reply)
Hi all
This is my output of the some SQL Query
TABLESPACE_NAME FILE_NAME TOTALSPACE FREESPACE USEDSPACE Free
------------------------- ------------------------------------------------------- ---------- --------- ---------... (2 Replies)
Greetings!
I'm looking for starting information for a shell script. Here's my scenario:
I have multiple folders(100) for example:
/www/test/applications/app1/logs
/www/test/applications/app2/logs
Within these folders there are log files files that need to be deleted after a month.
... (3 Replies)
I have log files with time stamps. I want to search for text between two time stamp using sed even if the first tme stamp or the last time stamp are not present. For e.g. if i search between 9:30 and 9:40 then it should return text even if 9:30 or 9:40 is not there but between 9:30 and 9:40 is... (8 Replies)
I have created the script to grep the errors from weblogic logs files and redirecting output to file.txt ...From file.txt I'm using awk command to collect the past 20 mins output...The script running from cron every 15 mins... The script working well...
Now the challenges, I'm trying to use... (27 Replies)
Hi Experts ,
I need your help to collect the complete data between two time frame from the log files, when I try awk it's collecting the data only which is printed with time stamp
for example, awk works well from "16:00 to 17:30" but its not collecting <line*> "from 17:30 to 18:00"
... (8 Replies)
I am facing an Issue with a particular Unix Account ( ie a particular Userid) getting LOCKED everyday between 7:30am and 8:00am. The Password associated with this particular Account has been setup such that it should never Expire at all but it does LOCK the Account after more than 3 failed... (5 Replies)
Hi
I have a system running uname -a
Linux cmovel-db01 2.6.32-38-server #83-Ubuntu SMP Wed Jan 4 11:26:59 UTC 2012 x86_64 GNU/Linux
I would like to capture the contents of /var/log/syslog from 11:00AM to 11:30AM and sent to this info via email.
I was thinking in set a cron entry at that... (2 Replies)
Input file:
data1 0.05
data2 1e-14
data1 1e-330
data2 1e-14
data5 2e-60
data5 2e-150
data1 4e-9
Desired output:
data2 1e-14
data1 1e-330
data2 1e-14
data5 2e-60
data5 2e-150
I would like to filter out those result that column 2 is less than 1e-10.
Command try: (1 Reply)
Discussion started by: cpp_beginner
1 Replies
LEARN ABOUT CENTOS
abrtd
ABRTD(8) ABRT Manual ABRTD(8)NAME
abrtd - automated bug reporting tool's daemon.
SYNOPSIS
abrtd [-dsv[v]...]
DESCRIPTION
abrtd is a daemon that watches for application crashes. When a crash occurs, it collects the problem data (core file, application's command
line etc.) and takes action according to the type of application that crashed and according to the configuration in the abrt.conf config
file. There are plugins for various actions: for example to report the crash to Bugzilla, to mail the report, or to transfer the report via
FTP or SCP. See the manual pages for the respective plugins.
OPTIONS -v
Log more detailed debugging information.
-d
Stay in the foreground and log to standard error.
-s
Log to system log even with option -d.
-t NUM
Exit after NUM seconds of inactivity.
-p
Add program names to log.
CAVEATS
When you use some other crash-catching tool specific for an application or an application type (for example BugBuddy for GNOME
applications), crashes of this type will be handled by that tool and not by abrtd. If you want abrtd to handle these crashes, turn off the
higher-level crash-catching tool.
AUTHORS
o ABRT team
SEE ALSO abrt.conf(5)abrt 2.1.11 06/18/2014 ABRTD(8)