Sponsored Content
Top Forums Shell Programming and Scripting awk: assign a printf value to a variable Post 302087747 by Klashxx on Tuesday 5th of September 2006 12:25:57 PM
Old 09-05-2006
Thx Jim Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

assign value to variable using AWK

Dear Friends I have text file as like below, AAAAA|BHBHBH|VERYSMART AAAAA| KKKKKK|GOOD BBBBBB|JJJJJJJ|VERYGOOD CCCCC|HJHJHJ|BETTER CCCCC|UUUUU|GOOD i need to split into seperate files based on column 1 like as below AAAAA.TXT contains -------------------- BHBHBH.VERYSMART... (4 Replies)
Discussion started by: HAA
4 Replies

2. Shell Programming and Scripting

assign awk array with printf

I am trying to assign a awk array for further processing later in the script. I can't seem to figure it out. If someone could look at this and help me, I would very much appreciate it. Thanks in Advance. for ( x = 1 ; x <= Var ; x++ ) { if ( x in varr ) { ... (2 Replies)
Discussion started by: timj123
2 Replies

3. Shell Programming and Scripting

Assign o/p of awk to a variable

:confused: Hi UNIX gurus, I am facing a typical problem while assigining while assigining output of awk to a variable. I have a fixed length file say myinputfile.txt When I allow the value/output of an awk to be redirected to a file, it works fine. i.e. awk "/^.{232}$acctNum/ {... (8 Replies)
Discussion started by: c2b2
8 Replies

4. Shell Programming and Scripting

awk: assign variable with -v didn't work in awk filter

I want to filter 2nd column = 2 using awk $ cat t 1 2 2 4 $ VAR=2 #variable worked in print $ cat t | awk -v ID=$VAR ' { print ID}' 2 2 # but variable didn't work in awk filter $ cat t | awk -v ID=$VAR '$2~/ID/ { print $0}' (2 Replies)
Discussion started by: honglus
2 Replies

5. Shell Programming and Scripting

assign awk's variable to shell script's variable?

Dear All, we have a command output which looks like : Total 200 queues in 30000 Kbytes and we're going to get "200" and "30000" for further process. currently, i'm using : numA=echo $OUTPUT | awk '{print $2}' numB=echo $OUTPUT | awk '{print $5}' my question is : can I use just one... (4 Replies)
Discussion started by: tiger2000
4 Replies

6. Shell Programming and Scripting

Variable inside AWK printf

Hi, Is it possible to print a variable inside awk printf ?? the above is not working (13 Replies)
Discussion started by: selvankj
13 Replies

7. Shell Programming and Scripting

help on awk---- need to assign the output of awk to a variable

hi i want to find the size of a folder and assign it to a variable and then compare if it is greater than 1 gb. i am doin this script, but it is throwing error.... #!/bin/ksh cd . | du -s | size = awk '{print $1}' if size >= 112000 then echo size high fi ERROR : (4 Replies)
Discussion started by: Nithz
4 Replies

8. Shell Programming and Scripting

Assign a variable with awk

I launch 'netstat -a', if string 'ESTABLISHED' found, then VAR=1 #!/bin/bash VAR=0; netstat -a | awk '$6 ~ /ESTABLISHED/ {VAR=1}' I cannot find the right syntax. thanx guys! (3 Replies)
Discussion started by: arpagon
3 Replies

9. UNIX for Beginners Questions & Answers

How can I assign awk's variable to shell script's variable?

I have the following script, and I want to assign the output ($10 and $5) from awk to N and L: grdinfo data.grd | awk '{print $10,$5}'| read N L output from gridinfo data.grd is: data.grd 50 100 41 82 -2796 6944 0.016 0.016 3001 2461. where N and L is suppose to be 3001 and 100. I use... (8 Replies)
Discussion started by: geomarine
8 Replies

10. UNIX for Beginners Questions & Answers

How to assign a value to a variable in awk scripting?

Hi, I am trying to assign a value using below command and it is assigning the command to the variable not the output of the command? out_value="echo $0 | cut -c 9-11"; How can i assign the output to the variable instead of whole command? This is inside my awk script (7 Replies)
Discussion started by: bhagya123
7 Replies
DateTime::Locale::om_KE(3)				User Contributed Perl Documentation				DateTime::Locale::om_KE(3)

NAME
DateTime::Locale::om_KE SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'om_KE' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Oromo Kenya. DATA
This locale inherits from the DateTime::Locale::om locale. It contains the following data. Days Wide (format) Wiixata Qibxata Roobii Kamiisa Jimaata Sanbata Dilbata Abbreviated (format) Wix Qib Rob Kam Jim San Dil Narrow (format) M T W T F S S Wide (stand-alone) Wiixata Qibxata Roobii Kamiisa Jimaata Sanbata Dilbata Abbreviated (stand-alone) Wix Qib Rob Kam Jim San Dil Narrow (stand-alone) M T W T F S S Months Wide (format) Amajjii Guraandhala Bitooteessa Elba Caamsa Waxabajjii Adooleessa Hagayya Fuulbana Onkololeessa Sadaasa Muddee Abbreviated (format) Ama Gur Bit Elb Cam Wax Ado Hag Ful Onk Sad Mud Narrow (format) J F M A M J J A S O N D Wide (stand-alone) Amajjii Guraandhala Bitooteessa Elba Caamsa Waxabajjii Adooleessa Hagayya Fuulbana Onkololeessa Sadaasa Muddee Abbreviated (stand-alone) Ama Gur Bit Elb Cam Wax Ado Hag Ful Onk Sad Mud Narrow (stand-alone) J F M A M J J A S O N D Quarters Wide (format) Q1 Q2 Q3 Q4 Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) Q1 Q2 Q3 Q4 Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide BCE CE Abbreviated KD KB Narrow KD KB Date Formats Full 2008-02-05T18:30:30 = Qibxata, Guraandhala 5, 2008 1995-12-22T09:05:02 = Jimaata, Muddee 22, 1995 -0010-09-15T04:44:23 = Sanbata, Fuulbana 15, -10 Long 2008-02-05T18:30:30 = 05 Guraandhala 2008 1995-12-22T09:05:02 = 22 Muddee 1995 -0010-09-15T04:44:23 = 15 Fuulbana -10 Medium 2008-02-05T18:30:30 = 05-Gur-2008 1995-12-22T09:05:02 = 22-Mud-1995 -0010-09-15T04:44:23 = 15-Ful--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 = 05-Gur-2008 1995-12-22T09:05:02 = 22-Mud-1995 -0010-09-15T04:44:23 = 15-Ful--10 Time Formats Full 2008-02-05T18:30:30 = 6:30:30 WB UTC 1995-12-22T09:05:02 = 9:05:02 WD UTC -0010-09-15T04:44:23 = 4:44:23 WD UTC Long 2008-02-05T18:30:30 = 6:30:30 WB UTC 1995-12-22T09:05:02 = 9:05:02 WD UTC -0010-09-15T04:44:23 = 4:44:23 WD UTC Medium 2008-02-05T18:30:30 = 6:30:30 WB 1995-12-22T09:05:02 = 9:05:02 WD -0010-09-15T04:44:23 = 4:44:23 WD Short 2008-02-05T18:30:30 = 6:30 WB 1995-12-22T09:05:02 = 9:05 WD -0010-09-15T04:44:23 = 4:44 WD Default 2008-02-05T18:30:30 = 6:30:30 WB 1995-12-22T09:05:02 = 9:05:02 WD -0010-09-15T04:44:23 = 4:44:23 WD Datetime Formats Full 2008-02-05T18:30:30 = Qibxata, Guraandhala 5, 2008 6:30:30 WB UTC 1995-12-22T09:05:02 = Jimaata, Muddee 22, 1995 9:05:02 WD UTC -0010-09-15T04:44:23 = Sanbata, Fuulbana 15, -10 4:44:23 WD UTC Long 2008-02-05T18:30:30 = 05 Guraandhala 2008 6:30:30 WB UTC 1995-12-22T09:05:02 = 22 Muddee 1995 9:05:02 WD UTC -0010-09-15T04:44:23 = 15 Fuulbana -10 4:44:23 WD UTC Medium 2008-02-05T18:30:30 = 05-Gur-2008 6:30:30 WB 1995-12-22T09:05:02 = 22-Mud-1995 9:05:02 WD -0010-09-15T04:44:23 = 15-Ful--10 4:44:23 WD Short 2008-02-05T18:30:30 = 05/02/08 6:30 WB 1995-12-22T09:05:02 = 22/12/95 9:05 WD -0010-09-15T04:44:23 = 15/09/-10 4:44 WD Default 2008-02-05T18:30:30 = 05-Gur-2008 6:30:30 WB 1995-12-22T09:05:02 = 22-Mud-1995 9:05:02 WD -0010-09-15T04:44:23 = 15-Ful--10 4:44:23 WD 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 Qib 1995-12-22T09:05:02 = 22 Jim -0010-09-15T04:44:23 = 15 San 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 WB 1995-12-22T09:05:02 = 9:05 WD -0010-09-15T04:44:23 = 4:44 WD 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 WB 1995-12-22T09:05:02 = 9:05:02 WD -0010-09-15T04:44:23 = 4:44:23 WD M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (M-d) 2008-02-05T18:30:30 = 2-5 1995-12-22T09:05:02 = 12-22 -0010-09-15T04:44:23 = 9-15 MEd (E, M-d) 2008-02-05T18:30:30 = Qib, 2-5 1995-12-22T09:05:02 = Jim, 12-22 -0010-09-15T04:44:23 = San, 9-15 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 = Gur 1995-12-22T09:05:02 = Mud -0010-09-15T04:44:23 = Ful MMMd (MMM d) 2008-02-05T18:30:30 = Gur 5 1995-12-22T09:05:02 = Mud 22 -0010-09-15T04:44:23 = Ful 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = Qib Gur 5 1995-12-22T09:05:02 = Jim Mud 22 -0010-09-15T04:44:23 = San Ful 15 MMMMd (MMMM d) 2008-02-05T18:30:30 = Guraandhala 5 1995-12-22T09:05:02 = Muddee 22 -0010-09-15T04:44:23 = Fuulbana 15 MMMMdd (dd MMMM) 2008-02-05T18:30:30 = 05 Guraandhala 1995-12-22T09:05:02 = 22 Muddee -0010-09-15T04:44:23 = 15 Fuulbana MMMMEd (E MMMM d) 2008-02-05T18:30:30 = Qib Guraandhala 5 1995-12-22T09:05:02 = Jim Muddee 22 -0010-09-15T04:44:23 = San Fuulbana 15 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 (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, y-M-d) 2008-02-05T18:30:30 = Qib, 2008-2-5 1995-12-22T09:05:02 = Jim, 1995-12-22 -0010-09-15T04:44:23 = San, -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 Gur 1995-12-22T09:05:02 = 1995 Mud -0010-09-15T04:44:23 = -10 Ful yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = Qib, 2008 Gur 5 1995-12-22T09:05:02 = Jim, 1995 Mud 22 -0010-09-15T04:44:23 = San, -10 Ful 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 Guraandhala 1995-12-22T09:05:02 = 1995 Muddee -0010-09-15T04:44:23 = -10 Fuulbana yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 Q1 1995-12-22T09:05:02 = 1995 Q4 -0010-09-15T04:44:23 = -10 Q3 yyMM (MM/yy) 2008-02-05T18:30:30 = 02/08 1995-12-22T09:05:02 = 12/95 -0010-09-15T04:44:23 = 09/-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 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = Guraandhala 2008 1995-12-22T09:05:02 = Muddee 1995 -0010-09-15T04:44:23 = Fuulbana -10 Miscellaneous Prefers 24 hour time? No Local first day of the week Sanbata 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::om_KE(3)
All times are GMT -4. The time now is 06:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy