10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am using awk to match columns and output based on those matches. For some reason it is not printing matching columns, am I missing something?
Operating system - windows with cygwin.
Command that I am using:
sed 's/]*,]*/,/g' $tempdir/file1 > $tempdir/file1.$$ && awk -F, 'FNR==NR{f2=$2... (7 Replies)
Discussion started by: dis0wned
7 Replies
2. Shell Programming and Scripting
I am learning AWK by trying out examples whenever I need a specific conversion. I would like to edit the 'before.txt' so that all the missing data points between 140-150 are added and shown as 0.
before.txt
145 2
148 13
149 17
to below,
140 0
141 0
142 0
143 0
144 0
145 2
146 0... (5 Replies)
Discussion started by: numareica
5 Replies
3. Shell Programming and Scripting
Hello experts!
I have 2 files.
file1 is a list file containing uniquely names. e.g.:
name1 number number
name2 number number
name5 number number
name10 number number
...
file2 is a data file arbitrary containing the names of file1 in paragraphs separated by "10" e.g.
name4 ... (3 Replies)
Discussion started by: phaethon
3 Replies
4. Shell Programming and Scripting
Hi there,
I was using the following awk statement but the first line is missing
dirlist=(`ls summary*`); #list all the files in a directory and store them into a variable
echo '<table border='1'>'
echo '<tr><td>%windir%\fonts\*.* </td><td>' ; awk '/Successfully/ {P=0} P... (2 Replies)
Discussion started by: alvinoo
2 Replies
5. Shell Programming and Scripting
I have a file that I need to find each interface that has move-group on the interface line and print this line if the lines under the interface does Not have "filter-shared 14".
Example file:
interface 1/1/1/0 move-group
decription one one one zero
no shut
filter-shared 14... (21 Replies)
Discussion started by: numele
21 Replies
6. Shell Programming and Scripting
Hello to all,
I have show below a file separated by commas. In first column has numbers where the last number is 13.
1,4
2,6
3,7
5,2
6,5
7,5
8,65
9,10
11,78
13,2
What I want to know is which numbers are missing from 1 to 13 (in this case 13 is last number in column 1). My real... (17 Replies)
Discussion started by: Ophiuchus
17 Replies
7. Shell Programming and Scripting
Hi all,
Hope someone can help me out here.
I have this BASH script (see below)
My problem lies with the variable path.
The output of the command find will give me several fields. The 9th field is the path. I want to captured that and the I want to filter this to a specific level.
The... (6 Replies)
Discussion started by: Cowardly
6 Replies
8. Shell Programming and Scripting
Hi Experts,
The content of the raw file:
date,nomsgsent,nomsgnotdeliver,nomsgdelay
201003251000,1000,1,2
201003251000,900,0,0
201003251000,1450,0,0
201003251000,1230,0,0
However, sometimes, the column will missing in the raw files:
e.g.
date,nomsgsent,nomsgdelay... (8 Replies)
Discussion started by: natalie23
8 Replies
9. Shell Programming and Scripting
Hey ,
I'm trying to perform the following command, however it cannot read the variable assigned earlier. I'm not sure why this happen. Please help thanks
while :
do
echo "what's ur name? (if none just press )"
read name
changeName = echo $name | sed "s/on/ey/"
echo $changeName #this... (8 Replies)
Discussion started by: sexyTrojan
8 Replies
10. Shell Programming and Scripting
Here is what I am trying to do:
I have a list of numbers that I pulled from an awk command in a column like so:
1
3
4
7
8
I want to find which numbers in the list are missing out of a range. So let's say I want to find out from the list above which numbers are missing from the... (6 Replies)
Discussion started by: afavis
6 Replies
DateTime::Locale::pa_PK(3) User Contributed Perl Documentation DateTime::Locale::pa_PK(3)
NAME
DateTime::Locale::pa_PK
SYNOPSIS
use DateTime;
my $dt = DateTime->now( locale => 'pa_PK' );
print $dt->month_name();
DESCRIPTION
This is the DateTime locale package for Punjabi Pakistan.
DATA
This locale inherits from the DateTime::Locale::pa_Arab_PK locale.
It contains the following data.
Days
Wide (format)
XXX
XXXX
XXXX
XXXXXX
XXXX
XXXX
XXXXX
Abbreviated (format)
XXX
XXXX
XXXX
XXXXXX
XXXX
XXXX
XXXXX
Narrow (format)
XX
XX
XXX
XX
XXXX
XX
X
Wide (stand-alone)
XXX
XXXX
XXXX
XXXXXX
XXXX
XXXX
XXXXX
Abbreviated (stand-alone)
XXX
XXXX
XXXX
XXXXXX
XXXX
XXXX
XXXXX
Narrow (stand-alone)
XX
XX
XXX
XX
XXXX
XX
X
Months
Wide (format)
XXXXX
XXXXX
XXXX
XXXXX
XX
XXX
XXXXXX
XXXX
XXXXX
XXXXXX
XXXXX
XXXXX
Abbreviated (format)
XXXXX
XXXXX
XXXX
XXXXX
XX
XXX
XXXXXX
XXXX
XXXXX
XXXXXX
XXXXX
XXXXX
Narrow (format)
X
X
XX
X
X
XX
XX
X
X
X
X
X
Wide (stand-alone)
XXXXX
XXXXX
XXXX
XXXXX
XX
XXX
XXXXXX
XXXX
XXXXX
XXXXXX
XXXXX
XXXXX
Abbreviated (stand-alone)
1
2
3
4
5
6
7
8
9
10
11
12
Narrow (stand-alone)
X
X
XX
X
X
XX
XX
X
X
X
X
X
Quarters
Wide (format)
XXXXXX XXXXX
XXXXXX XXXX
XXXXXX XXXX
XXXXXX XXXXX
Abbreviated (format)
XXXXXX XXXXX
XXXXXX XXXX
XXXXXX XXXX
XXXXXX XXXXX
Narrow (format)
1
2
3
4
Wide (stand-alone)
XXXXXX XXXXX
XXXXXX XXXX
XXXXXX XXXX
XXXXXX XXXXX
Abbreviated (stand-alone)
XXXXXX XXXXX
XXXXXX XXXX
XXXXXX XXXX
XXXXXX XXXXX
Narrow (stand-alone)
1
2
3
4
Eras
Wide
XXXXXXXX
XX
Abbreviated
XXXXXXXX
XX
Narrow
XXXXXXXX
XX
Date Formats
Full
2008-02-05T18:30:30 = XXXX, 05 XXXXX 2008
1995-12-22T09:05:02 = XXXX, 22 XXXXX 1995
-0010-09-15T04:44:23 = XXXX, 15 XXXXX -10
Long
2008-02-05T18:30:30 = 5 XXXXX 2008
1995-12-22T09:05:02 = 22 XXXXX 1995
-0010-09-15T04:44:23 = 15 XXXXX -10
Medium
2008-02-05T18:30:30 = 5 XXXXX 2008
1995-12-22T09:05:02 = 22 XXXXX 1995
-0010-09-15T04:44:23 = 15 XXXXX -10
Short
2008-02-05T18:30:30 = 05/02/2008
1995-12-22T09:05:02 = 22/12/1995
-0010-09-15T04:44:23 = 15/09/-010
Default
2008-02-05T18:30:30 = 5 XXXXX 2008
1995-12-22T09:05:02 = 22 XXXXX 1995
-0010-09-15T04:44:23 = 15 XXXXX -10
Time Formats
Full
2008-02-05T18:30:30 = 6:30:30 XXXX UTC
1995-12-22T09:05:02 = 9:05:02 XXXXX UTC
-0010-09-15T04:44:23 = 4:44:23 XXXXX UTC
Long
2008-02-05T18:30:30 = 6:30:30 XXXX UTC
1995-12-22T09:05:02 = 9:05:02 XXXXX UTC
-0010-09-15T04:44:23 = 4:44:23 XXXXX UTC
Medium
2008-02-05T18:30:30 = 6:30:30 XXXX
1995-12-22T09:05:02 = 9:05:02 XXXXX
-0010-09-15T04:44:23 = 4:44:23 XXXXX
Short
2008-02-05T18:30:30 = 6:30 XXXX
1995-12-22T09:05:02 = 9:05 XXXXX
-0010-09-15T04:44:23 = 4:44 XXXXX
Default
2008-02-05T18:30:30 = 6:30:30 XXXX
1995-12-22T09:05:02 = 9:05:02 XXXXX
-0010-09-15T04:44:23 = 4:44:23 XXXXX
Datetime Formats
Full
2008-02-05T18:30:30 = XXXX, 05 XXXXX 2008 6:30:30 XXXX UTC
1995-12-22T09:05:02 = XXXX, 22 XXXXX 1995 9:05:02 XXXXX UTC
-0010-09-15T04:44:23 = XXXX, 15 XXXXX -10 4:44:23 XXXXX UTC
Long
2008-02-05T18:30:30 = 5 XXXXX 2008 6:30:30 XXXX UTC
1995-12-22T09:05:02 = 22 XXXXX 1995 9:05:02 XXXXX UTC
-0010-09-15T04:44:23 = 15 XXXXX -10 4:44:23 XXXXX UTC
Medium
2008-02-05T18:30:30 = 5 XXXXX 2008 6:30:30 XXXX
1995-12-22T09:05:02 = 22 XXXXX 1995 9:05:02 XXXXX
-0010-09-15T04:44:23 = 15 XXXXX -10 4:44:23 XXXXX
Short
2008-02-05T18:30:30 = 05/02/2008 6:30 XXXX
1995-12-22T09:05:02 = 22/12/1995 9:05 XXXXX
-0010-09-15T04:44:23 = 15/09/-010 4:44 XXXXX
Default
2008-02-05T18:30:30 = 5 XXXXX 2008 6:30:30 XXXX
1995-12-22T09:05:02 = 22 XXXXX 1995 9:05:02 XXXXX
-0010-09-15T04:44:23 = 15 XXXXX -10 4:44:23 XXXXX
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 XXXX
1995-12-22T09:05:02 = 22 XXXX
-0010-09-15T04:44:23 = 15 XXXX
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 XXXX
1995-12-22T09:05:02 = 9:05 XXXXX
-0010-09-15T04:44:23 = 4:44 XXXXX
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 XXXX
1995-12-22T09:05:02 = 9:05:02 XXXXX
-0010-09-15T04:44:23 = 4:44:23 XXXXX
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, M-d)
2008-02-05T18:30:30 = XXXX, 2-5
1995-12-22T09:05:02 = XXXX, 12-22
-0010-09-15T04:44:23 = XXXX, 9-15
MMM (LLL)
2008-02-05T18:30:30 = 2
1995-12-22T09:05:02 = 12
-0010-09-15T04:44:23 = 9
MMMd (MMM d)
2008-02-05T18:30:30 = XXXXX 5
1995-12-22T09:05:02 = XXXXX 22
-0010-09-15T04:44:23 = XXXXX 15
MMMEd (E MMM d)
2008-02-05T18:30:30 = XXXX XXXXX 5
1995-12-22T09:05:02 = XXXX XXXXX 22
-0010-09-15T04:44:23 = XXXX XXXXX 15
MMMMd (MMMM d)
2008-02-05T18:30:30 = XXXXX 5
1995-12-22T09:05:02 = XXXXX 22
-0010-09-15T04:44:23 = XXXXX 15
MMMMEd (E MMMM d)
2008-02-05T18:30:30 = XXXX XXXXX 5
1995-12-22T09:05:02 = XXXX XXXXX 22
-0010-09-15T04:44:23 = XXXX XXXXX 15
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 (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 = XXXX, 2008-2-5
1995-12-22T09:05:02 = XXXX, 1995-12-22
-0010-09-15T04:44:23 = XXXX, -10-9-15
yMMM (y MMM)
2008-02-05T18:30:30 = 2008 XXXXX
1995-12-22T09:05:02 = 1995 XXXXX
-0010-09-15T04:44:23 = -10 XXXXX
yMMMEd (EEE, y MMM d)
2008-02-05T18:30:30 = XXXX, 2008 XXXXX 5
1995-12-22T09:05:02 = XXXX, 1995 XXXXX 22
-0010-09-15T04:44:23 = XXXX, -10 XXXXX 15
yMMMM (y MMMM)
2008-02-05T18:30:30 = 2008 XXXXX
1995-12-22T09:05:02 = 1995 XXXXX
-0010-09-15T04:44:23 = -10 XXXXX
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 XXXXXX XXXXX
1995-12-22T09:05:02 = 1995 XXXXXX XXXXX
-0010-09-15T04:44:23 = -10 XXXXXX XXXX
yyMMM (MMM yy)
2008-02-05T18:30:30 = XXXXX 08
1995-12-22T09:05:02 = XXXXX 95
-0010-09-15T04:44:23 = XXXXX -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
Miscellaneous
Prefers 24 hour time?
No
Local first day of the week
XXXXX
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::pa_PK(3)