Sponsored Content
Top Forums Shell Programming and Scripting Decision based on field value Post 302521642 by sam_bd on Thursday 12th of May 2011 01:37:52 AM
Old 05-12-2011
Hi Ahamed,
The position of these lines is 16,17,18 in the file.

Regards,
Sam
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find top N values for field X based on field Y's value

I want to find the top N entries for a certain field based on the values of another field. For example if N=3, we want the 3 best values for each entry: Entry1 ||| 100 Entry1 ||| 95 Entry1 ||| 30 Entry1 ||| 80 Entry1 ||| 50 Entry2 ||| 40 Entry2 ||| 20 Entry2 ||| 10 Entry2 ||| 50... (1 Reply)
Discussion started by: FrancoisCN
1 Replies

2. UNIX for Dummies Questions & Answers

awk - Summing a field based on another field

So, I need to do some summing. I have an Apache log file with the following as a typical line: 127.0.0.1 - frank "GET /apache_pb.gif HTTP/1.0" 200 2326 Now, what I'd like to do is a per-minute sum. So, I can have awk tell me the individual minutes, preserving the dates(since this is a... (7 Replies)
Discussion started by: treesloth
7 Replies

3. Shell Programming and Scripting

Uniq based on first field

Hi New to unix. I want to display only the unrepeated lines from a file using first field. Ex: 1234 uname1 status1 1235 uname2 status2 1234 uname3 status3 1236 uname5 status5 I used sort filename | uniq -u output: 1234 uname1 status1 1235 uname2 status2 1234 uname3 status3 1236... (10 Replies)
Discussion started by: venummca
10 Replies

4. Shell Programming and Scripting

Sorting based on the second field

Oracle Enterprise Linux 6 This is my file. Two fields separated by space $ cat testfile.txt MARCH9 MARCH4 MARCH1 MARCH5 MARCH2 MARCH326 MARCH821 MARCH7 MARCH6 MARCH2 $ $ The following numeric sort, based on the first field's 6th character works as expected. $ $ sort -n -k 1.6... (7 Replies)
Discussion started by: John K
7 Replies

5. UNIX for Dummies Questions & Answers

Grep based on first field

I want to grep based on first column and print all the columns. for eg. root 12344 /sh root 33389 /bash oracle 87378 /tech/oracle oracle 26367 /tmp/oracle Now I want to grep based on user "root" in first column and print like below. root ... (14 Replies)
Discussion started by: baladelaware73
14 Replies

6. Shell Programming and Scripting

awk to update value in field based on another field

In the tab-delimeted input file below I am trying to use awk to update the value in $2 if TYPE=ins in bold, by adding the value of HRUN= in italics. In the below since in line 1 TYPE=ins the 117282541 value in $2 has 6 added because that is the value of HRUN=. Hopefully the awk is a start but I... (2 Replies)
Discussion started by: cmccabe
2 Replies

7. Shell Programming and Scripting

awk to adjust coordinates in field based on sequential numbers in another field

I am trying to output a tab-delimited result that uses the data from a tab-delimited file to combine and subtract specific lines. If $4 matches in each line then the first matching sequential $6 value is added to $2, unless the value is 1, then the original $2 is used (like in the case of line... (3 Replies)
Discussion started by: cmccabe
3 Replies

8. Shell Programming and Scripting

Replacing field based on the value of other field

Hi Team, In the below input file, if I have the value 23,24,25 then for those records 1st field value should get updated from "a" to "b". I also want to pass these values in file as input as it can be done dynamically. Tried awk commands but not getting desired output.Using SunOS 5.10 version.... (14 Replies)
Discussion started by: weknowd
14 Replies

9. UNIX for Beginners Questions & Answers

Problem with getting awk to multiply a field by a value set based on condition of another field

Hi, So awk is driving me crazy on this one. I have searched everywhere and read man, docs and every related post Google can find and still no luck. The actual files I need to run this on are sensitive in nature, but it is the same thing as if I needed to calculate weighted grades for multiple... (15 Replies)
Discussion started by: cotilloe
15 Replies
DateTime::Locale::de_BE(3)				User Contributed Perl Documentation				DateTime::Locale::de_BE(3)

NAME
DateTime::Locale::de_BE SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'de_BE' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for German Belgium. DATA
This locale inherits from the DateTime::Locale::de locale. It contains the following data. Days Wide (format) Montag Dienstag Mittwoch Donnerstag Freitag Samstag Sonntag Abbreviated (format) Mon Die Mit Don Fre Sam Son Narrow (format) Mon Die Mit Don Fre Sam Son Wide (stand-alone) Montag Dienstag Mittwoch Donnerstag Freitag Samstag Sonntag Abbreviated (stand-alone) Mon Die Mit Don Fre Sam Son Narrow (stand-alone) M D M D F S S Months Wide (format) Januar Februar Maerz April Mai Juni Juli August September Oktober November Dezember Abbreviated (format) Jan Feb Maer Apr Mai Jun Jul Aug Sep Okt Nov Dez Narrow (format) J F M A M J J A S O N D Wide (stand-alone) Januar Februar Maerz April Mai Juni Juli August September Oktober November Dezember Abbreviated (stand-alone) Jan Feb Maer Apr Mai Jun Jul Aug Sep Okt Nov Dez Narrow (stand-alone) J F M A M J J A S O N D Quarters Wide (format) 1. Quartal 2. Quartal 3. Quartal 4. Quartal Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) 1. Quartal 2. Quartal 3. Quartal 4. Quartal Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide v. Chr. n. Chr. Abbreviated v. Chr. n. Chr. Narrow v. Chr. n. Chr. Date Formats Full 2008-02-05T18:30:30 = Dienstag 5 Februar 2008 1995-12-22T09:05:02 = Freitag 22 Dezember 1995 -0010-09-15T04:44:23 = Samstag 15 September -10 Long 2008-02-05T18:30:30 = 5 Februar 2008 1995-12-22T09:05:02 = 22 Dezember 1995 -0010-09-15T04:44:23 = 15 September -10 Medium 2008-02-05T18:30:30 = 05.02.2008 1995-12-22T09:05:02 = 22.12.1995 -0010-09-15T04:44:23 = 15.09.-010 Short 2008-02-05T18:30:30 = 5/02/08 1995-12-22T09:05:02 = 22/12/95 -0010-09-15T04:44:23 = 15/09/-10 Default 2008-02-05T18:30:30 = 05.02.2008 1995-12-22T09:05:02 = 22.12.1995 -0010-09-15T04:44:23 = 15.09.-010 Time Formats Full 2008-02-05T18:30:30 = 18 h 30 min 30 s UTC 1995-12-22T09:05:02 = 09 h 05 min 02 s UTC -0010-09-15T04:44:23 = 04 h 44 min 23 s 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 = Dienstag 5 Februar 2008 18 h 30 min 30 s UTC 1995-12-22T09:05:02 = Freitag 22 Dezember 1995 09 h 05 min 02 s UTC -0010-09-15T04:44:23 = Samstag 15 September -10 04 h 44 min 23 s UTC Long 2008-02-05T18:30:30 = 5 Februar 2008 18:30:30 UTC 1995-12-22T09:05:02 = 22 Dezember 1995 09:05:02 UTC -0010-09-15T04:44:23 = 15 September -10 04:44:23 UTC Medium 2008-02-05T18:30:30 = 05.02.2008 18:30:30 1995-12-22T09:05:02 = 22.12.1995 09:05:02 -0010-09-15T04:44:23 = 15.09.-010 04:44:23 Short 2008-02-05T18:30:30 = 5/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 = 05.02.2008 18:30:30 1995-12-22T09:05:02 = 22.12.1995 09:05:02 -0010-09-15T04:44:23 = 15.09.-010 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 Ed (E d.) 2008-02-05T18:30:30 = Die 5. 1995-12-22T09:05:02 = Fre 22. -0010-09-15T04:44:23 = Sam 15. EEEd (d. EEE) 2008-02-05T18:30:30 = 5. Die 1995-12-22T09:05:02 = 22. Fre -0010-09-15T04:44:23 = 15. Sam H (H) 2008-02-05T18:30:30 = 18 1995-12-22T09:05:02 = 9 -0010-09-15T04:44:23 = 4 HHmm (HH:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 HHmmss (HH:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 nachm. 1995-12-22T09:05:02 = 9:05 vorm. -0010-09-15T04:44:23 = 4:44 vorm. 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 nachm. 1995-12-22T09:05:02 = 9:05:02 vorm. -0010-09-15T04:44:23 = 4:44:23 vorm. 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 = Die, 5.2. 1995-12-22T09:05:02 = Fre, 22.12. -0010-09-15T04:44:23 = Sam, 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 = Dez -0010-09-15T04:44:23 = Sep MMMd (d. MMM) 2008-02-05T18:30:30 = 5. Feb 1995-12-22T09:05:02 = 22. Dez -0010-09-15T04:44:23 = 15. Sep MMMEd (E d. MMM) 2008-02-05T18:30:30 = Die 5. Feb 1995-12-22T09:05:02 = Fre 22. Dez -0010-09-15T04:44:23 = Sam 15. Sep MMMMd (d MMMM) 2008-02-05T18:30:30 = 5 Februar 1995-12-22T09:05:02 = 22 Dezember -0010-09-15T04:44:23 = 15 September MMMMdd (dd. MMMM) 2008-02-05T18:30:30 = 05. Februar 1995-12-22T09:05:02 = 22. Dezember -0010-09-15T04:44:23 = 15. September MMMMEd (E d. MMMM) 2008-02-05T18:30:30 = Die 5. Februar 1995-12-22T09:05:02 = Fre 22. Dezember -0010-09-15T04:44:23 = Sam 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 (yyyy-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -010-9 yMEd (EEE, yyyy-M-d) 2008-02-05T18:30:30 = Die, 2008-2-5 1995-12-22T09:05:02 = Fre, 1995-12-22 -0010-09-15T04:44:23 = Sam, -010-9-15 yMMM (MMM y) 2008-02-05T18:30:30 = Feb 2008 1995-12-22T09:05:02 = Dez 1995 -0010-09-15T04:44:23 = Sep -10 yMMMEd (EEE, d. MMM y) 2008-02-05T18:30:30 = Die, 5. Feb 2008 1995-12-22T09:05:02 = Fre, 22. Dez 1995 -0010-09-15T04:44:23 = Sam, 15. Sep -10 yMMMM (MMMM y) 2008-02-05T18:30:30 = Februar 2008 1995-12-22T09:05:02 = Dezember 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 = Q1 2008 1995-12-22T09:05:02 = Q4 1995 -0010-09-15T04:44:23 = Q3 -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 yyMMdd (dd.MM.yy) 2008-02-05T18:30:30 = 05.02.08 1995-12-22T09:05:02 = 22.12.95 -0010-09-15T04:44:23 = 15.09.-10 yyMMM (MMM yy) 2008-02-05T18:30:30 = Feb 08 1995-12-22T09:05:02 = Dez 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 = 1. Quartal 08 1995-12-22T09:05:02 = 4. Quartal 95 -0010-09-15T04:44:23 = 3. Quartal -10 yyyy (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = Februar 2008 1995-12-22T09:05:02 = Dezember 1995 -0010-09-15T04:44:23 = September -10 Miscellaneous Prefers 24 hour time? Yes Local first day of the week Montag 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.18.2 2017-10-06 DateTime::Locale::de_BE(3)
All times are GMT -4. The time now is 07:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy