Sponsored Content
Top Forums Shell Programming and Scripting script for get lines with specific date Post 302583587 by ahamed101 on Tuesday 20th of December 2011 09:23:39 PM
Old 12-20-2011
"Below 20" is ambiguous, currently the log file has only data for december, so the below code will do.
Code:
awk '$6<=20' logfile

But is that all you want?

--ahamed
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script to read specific lines in a file

I have a file with contents as follows Record 1: Rejected - Error on table "DWO"."P2G_CUST_EVENTS". ORA-00001: unique constraint (DWO.CUST_EVENTS_PK) violated Record 5: Rejected - Error on table "DWO"."P2G_CUST_EVENTS". ORA-00001: unique constraint (DWO.CUST_EVENTS_PK) violated Record 6:... (5 Replies)
Discussion started by: varshanswamy
5 Replies

2. UNIX for Dummies Questions & Answers

command for selecting specific lines from a script

I need help on following script: I need to print the lines which are in bold letters in separate file as record string("|") emp_name; string("|") emp_id; decimal("|") emp_salary; string("|") emp_status; string("\n") emp_proj; end (1 Reply)
Discussion started by: gardasgangadhar
1 Replies

3. Shell Programming and Scripting

Delete lines prior to a specific date in a log file.

Hi all. I have a database log file in which log data get appended to it daily. I want to do a automatic maintainence of this log by going through the log and deleting lines belonging to a certain date. How should i do it? Please help. Thanks. Example. To delete all lines prior to Jun... (4 Replies)
Discussion started by: ahSher
4 Replies

4. Shell Programming and Scripting

shell script that will run for a specific date

Hi, I have these changes needed to modify a shell script that will run on a specific date of a month, below pseudocode, appreciate any answers..thanks.. if date of the month is 26th then ..event 1 fi if date of the month is 26th and month are MAR,JUN,SEP,DEC then ..event2 ... (7 Replies)
Discussion started by: sonja
7 Replies

5. Shell Programming and Scripting

Grep only specific lines ordered by column/date

Hi everybody, I'd like to think I've been through the search tool not only on this site, but also on google too, but I haven't been able to find what I was looking for. If I might've missed something on this forum, please slap me in the face with a link that you consider useful for my query :D ... (4 Replies)
Discussion started by: dilibau
4 Replies

6. Shell Programming and Scripting

script for get lines with specific time.

i want to make a script for grep any lines with key word and every time (5 min) Ex. Log in Server. . . . 03-01-2012 03:07:54,924 - INFO MessageUtil - Return | Status=0 | TxID=12010300000548755292 | Message=Success 03-01-2012 03:09:13,789 - INFO MessageUtil - Return | Status=0 |... (6 Replies)
Discussion started by: ooilinlove
6 Replies

7. Shell Programming and Scripting

Grep all lines for a specific date in log-files

I need to grep all lines for "yesterday" in /var/log/messages. Dates are in the format "YYYY-MM-DD". (5 Replies)
Discussion started by: Padmanabhan
5 Replies

8. Shell Programming and Scripting

Removing specific lines from script files.

Hello, Activity to perform: 1. Find all of the "*.tmp" files in a given user directory 2. Determine which ones have "find" in them. 3. Replace the "find sequence" of commands with a "list set" of commands. Example: Original file: -------------- define lastn1 = "A" define... (7 Replies)
Discussion started by: manishdivs
7 Replies

9. Shell Programming and Scripting

How can I apply 'date' command to specific columns, in a BASH script?

Hi everyone, I have a situation in which I have multiple (3 at last count) date columns in a CSV file (, delim), which need to be changed from: January 1 2017 (note, no comma after day) to: YYYY-MM-DD So far, I am able to convert a date using: date --date="January 12, 1990" +%Y-%m-%d ... (7 Replies)
Discussion started by: richardsantink
7 Replies

10. Shell Programming and Scripting

Date: invalid date trying to set Linux date in specific format

i try to set linux date & time in specific format but it keep giving me error Example : date "+%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01" or date +"%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01" keep giving me this error : date: invalid date ‘19-01-2017 00:05:01' Please use CODE tags... (7 Replies)
Discussion started by: umen
7 Replies
DateTime::Locale::nl(3) 				User Contributed Perl Documentation				   DateTime::Locale::nl(3)

NAME
DateTime::Locale::nl SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'nl' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Dutch. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) maandag dinsdag woensdag donderdag vrijdag zaterdag zondag Abbreviated (format) ma di wo do vr za zo Narrow (format) M D W D V Z Z Wide (stand-alone) maandag dinsdag woensdag donderdag vrijdag zaterdag zondag Abbreviated (stand-alone) ma di wo do vr za zo Narrow (stand-alone) M D W D V Z Z Months Wide (format) januari februari maart april mei juni juli augustus september oktober november december Abbreviated (format) jan. feb. mrt. apr. mei jun. jul. aug. sep. okt. nov. dec. Narrow (format) J F M A M J J A S O N D Wide (stand-alone) januari februari maart april mei juni juli augustus september oktober november december Abbreviated (stand-alone) jan. feb. mrt. apr. mei jun. jul. aug. sep. okt. nov. dec. Narrow (stand-alone) J F M A M J J A S O N D Quarters Wide (format) 1e kwartaal 2e kwartaal 3e kwartaal 4e kwartaal Abbreviated (format) K1 K2 K3 K4 Narrow (format) 1 2 3 4 Wide (stand-alone) 1e kwartaal 2e kwartaal 3e kwartaal 4e kwartaal Abbreviated (stand-alone) K1 K2 K3 K4 Narrow (stand-alone) 1 2 3 4 Eras Wide Voor Christus Anno Domini Abbreviated v. Chr. n. Chr. Narrow v. Chr. n. Chr. Date Formats Full 2008-02-05T18:30:30 = dinsdag 5 februari 2008 1995-12-22T09:05:02 = vrijdag 22 december 1995 -0010-09-15T04:44:23 = zaterdag 15 september -10 Long 2008-02-05T18:30:30 = 5 februari 2008 1995-12-22T09:05:02 = 22 december 1995 -0010-09-15T04:44:23 = 15 september -10 Medium 2008-02-05T18:30:30 = 5 feb. 2008 1995-12-22T09:05:02 = 22 dec. 1995 -0010-09-15T04:44:23 = 15 sep. -10 Short 2008-02-05T18:30:30 = 05-02-08 1995-12-22T09:05:02 = 22-12-95 -0010-09-15T04:44:23 = 15-09--10 Default 2008-02-05T18:30:30 = 5 feb. 2008 1995-12-22T09:05:02 = 22 dec. 1995 -0010-09-15T04:44:23 = 15 sep. -10 Time Formats Full 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Long 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Medium 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Short 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 Default 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Datetime Formats Full 2008-02-05T18:30:30 = dinsdag 5 februari 2008 18:30:30 UTC 1995-12-22T09:05:02 = vrijdag 22 december 1995 09:05:02 UTC -0010-09-15T04:44:23 = zaterdag 15 september -10 04:44:23 UTC Long 2008-02-05T18:30:30 = 5 februari 2008 18:30:30 UTC 1995-12-22T09:05:02 = 22 december 1995 09:05:02 UTC -0010-09-15T04:44:23 = 15 september -10 04:44:23 UTC Medium 2008-02-05T18:30:30 = 5 feb. 2008 18:30:30 1995-12-22T09:05:02 = 22 dec. 1995 09:05:02 -0010-09-15T04:44:23 = 15 sep. -10 04:44:23 Short 2008-02-05T18:30:30 = 05-02-08 18:30 1995-12-22T09:05:02 = 22-12-95 09:05 -0010-09-15T04:44:23 = 15-09--10 04:44 Default 2008-02-05T18:30:30 = 5 feb. 2008 18:30:30 1995-12-22T09:05:02 = 22 dec. 1995 09:05:02 -0010-09-15T04:44:23 = 15 sep. -10 04:44:23 Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 di 1995-12-22T09:05:02 = 22 vr -0010-09-15T04:44:23 = 15 za Hm (HH:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 PM 1995-12-22T09:05:02 = 9:05 AM -0010-09-15T04:44:23 = 4:44 AM Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 PM 1995-12-22T09:05:02 = 9:05:02 AM -0010-09-15T04:44:23 = 4:44:23 AM M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (d-M) 2008-02-05T18:30:30 = 5-2 1995-12-22T09:05:02 = 22-12 -0010-09-15T04:44:23 = 15-9 MEd (E d-M) 2008-02-05T18:30:30 = di 5-2 1995-12-22T09:05:02 = vr 22-12 -0010-09-15T04:44:23 = za 15-9 MMd (d-MM) 2008-02-05T18:30:30 = 5-02 1995-12-22T09:05:02 = 22-12 -0010-09-15T04:44:23 = 15-09 MMdd (dd-MM) 2008-02-05T18:30:30 = 05-02 1995-12-22T09:05:02 = 22-12 -0010-09-15T04:44:23 = 15-09 MMM (LLL) 2008-02-05T18:30:30 = feb. 1995-12-22T09:05:02 = dec. -0010-09-15T04:44:23 = sep. MMMd (d-MMM) 2008-02-05T18:30:30 = 5-feb. 1995-12-22T09:05:02 = 22-dec. -0010-09-15T04:44:23 = 15-sep. MMMEd (E d MMM) 2008-02-05T18:30:30 = di 5 feb. 1995-12-22T09:05:02 = vr 22 dec. -0010-09-15T04:44:23 = za 15 sep. MMMMd (d MMMM) 2008-02-05T18:30:30 = 5 februari 1995-12-22T09:05:02 = 22 december -0010-09-15T04:44:23 = 15 september MMMMEd (E d MMMM) 2008-02-05T18:30:30 = di 5 februari 1995-12-22T09:05:02 = vr 22 december -0010-09-15T04:44:23 = za 15 september mmss (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (M-yyyy) 2008-02-05T18:30:30 = 2-2008 1995-12-22T09:05:02 = 12-1995 -0010-09-15T04:44:23 = 9--010 yMEd (EEE d-M-yyyy) 2008-02-05T18:30:30 = di 5-2-2008 1995-12-22T09:05:02 = vr 22-12-1995 -0010-09-15T04:44:23 = za 15-9--010 yMMM (MMM y) 2008-02-05T18:30:30 = feb. 2008 1995-12-22T09:05:02 = dec. 1995 -0010-09-15T04:44:23 = sep. -10 yMMMEd (EEE d MMM y) 2008-02-05T18:30:30 = di 5 feb. 2008 1995-12-22T09:05:02 = vr 22 dec. 1995 -0010-09-15T04:44:23 = za 15 sep. -10 yMMMM (MMMM y) 2008-02-05T18:30:30 = februari 2008 1995-12-22T09:05:02 = december 1995 -0010-09-15T04:44:23 = september -10 yQ (Q yyyy) 2008-02-05T18:30:30 = 1 2008 1995-12-22T09:05:02 = 4 1995 -0010-09-15T04:44:23 = 3 -010 yQQQ (QQQ y) 2008-02-05T18:30:30 = K1 2008 1995-12-22T09:05:02 = K4 1995 -0010-09-15T04:44:23 = K3 -10 yyMM (MM-yy) 2008-02-05T18:30:30 = 02-08 1995-12-22T09:05:02 = 12-95 -0010-09-15T04:44:23 = 09--10 yyMMM (MMM yy) 2008-02-05T18:30:30 = feb. 08 1995-12-22T09:05:02 = dec. 95 -0010-09-15T04:44:23 = sep. -10 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 yyQQQQ (QQQQ yy) 2008-02-05T18:30:30 = 1e kwartaal 08 1995-12-22T09:05:02 = 4e kwartaal 95 -0010-09-15T04:44:23 = 3e kwartaal -10 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = februari 2008 1995-12-22T09:05:02 = december 1995 -0010-09-15T04:44:23 = september -10 Miscellaneous Prefers 24 hour time? Yes Local first day of the week maandag SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.16.2 2013-08-25 DateTime::Locale::nl(3)
All times are GMT -4. The time now is 11:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy