Debian::L10n::Utils(3pm) User Contributed Perl Documentation Debian::L10n::Utils(3pm)NAME
Debian::L10n::Utils - Utilities for the dl10n tools
parse_subject(SUBJECT)
parse_subject extract valuable informations from a subject line.
It gets a string containing the subject line (SUBJECT).
It returns an array containing the status, type, filename strings and bug number if provided or 'undef' if no status is found.
parse_from(FROM)
parse_from extract the sender name from the 'From:' field.
The name is build from the phrase part of the field, or if none is found, from the comment part where parentheses are removed, or if none
is found, from the address where all non-alphanumeric characters are turned into spaces.
It gets a string containing the 'From:' field (FROM).
It returns a string containing the name.
parse_date(DATE)
parse_date extract the date from a 'Date:' field.
It gets a string containing the 'Date:' field (DATE).
It returns a string containing the date in ISO format yyyy-mm-dd hh:mm:ss AXhh:mm based on GMT
LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. # You should have received a
copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place -
Suite 330, Boston, MA 02111-1307, USA.
COPYRIGHT (C)
2003,2004 Tim Dijkstra
2004 Nicolas Bertolissio
2004 Martin Quinson
2008 Nicolas FranA~Xois
perl v5.14.2 2012-01-15 Debian::L10n::Utils(3pm)
Check Out this Related Man Page
Parse::DebianChangelog::ChangesFilters(3pm) User Contributed Perl Documentation Parse::DebianChangelog::ChangesFilters(3pm)NAME
Parse::DebianChangelog::ChangesFilters - filters to be applied to Debian changelog entries
SYNOPSIS DESCRIPTION
This is currently only used internally by Parse::DebianChangelog and is not yet documented. There may be still API changes until this
module is finalized.
SEE ALSO
Parse::DebianChangelog
AUTHOR
Frank Lichtenheld, <frank@lichtenheld.de>
COPYRIGHT AND LICENSE
Copyright (C) 2005 by Frank Lichtenheld
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
perl v5.12.3 2011-05-07 Parse::DebianChangelog::ChangesFilters(3pm)
Hi,
I have a file where there is a date field (single line variable length file)
how to extract just the date portion from it
the position of date field may vary anywhere in the line
but will always have the format mm-dd-yyyy
for eg .
xxxxxxxxxxxxxxx09-10-2006xxxxxxxxxxxxxxxxxxxx (5 Replies)
I want to extract a string from a line in a text file between two different characters:
for example:
:string"
I want to extract string. It has to be done in a one-liner. (11 Replies)
Hello,
Below is my input file's content ( in HP-UX platform ):
ABCD120672-B21 1
ABCD142257-002 1
ABCD142257-003 1
ABCD142257-006 1
From the above, I just want to get the field of 13 characters that comes after 'ABCD' i.e '120672-B21'... . Could you please let me know the shell script... (3 Replies)
i need a shell program to extract a substring from a main string..
for eg:- main string is madhu..
sub string is mad
o/p:- be mad.
try to solve this one (5 Replies)
Hello All,
I am after the script or the command which can scan the entire file for a string $PART_ID and when found to extract/copy the corresponding $PART_ID value (e.g THIRE_PTY_SOFTWARE for the 1st occurance of $PART_ID in the attached file) to a file.
Appreciate your help.
Thanks in... (3 Replies)
Hi Gurus
I want to extract a date and version code which shall come in filename consisting of underscores.
The filename can contain any / one underscores but the version number will come after date and will be separted by underscore
String formats
=============
ABC_20090815_2.csv... (13 Replies)
Hi there,
I'll need some help with a string extraction.
My main string is a filename let's say:
sdgfj ghjsdgfjhds11.xml
I'd like to extract 5 characters before file extension, in above case this would be
hds11
Can someone please help? I'd like to have this done in bash (3 Replies)
Hi friends,
I want to select and use the certain part of a line. For example I have the following line
home/1245/hgdf/acsdf/myhome/afolder/H2O/endfile
how can I extract the part " /myhome/afolder/H2O/endfile "
thanks (6 Replies)
Hi
i would like to extract some part of the file to a new file.
first I would like to search for a string in the file and then i want two or three line above from the string to the the required string(can be any character)
I would like this to be made generalized in a script
Thanks (5 Replies)
I have a log file that I want to extract the field name and the field value
and write them to a text file for importation it a database table for reporting purposes.
How can I extract the desired data from this file .
Example: dbt_dbid=4
dbt_dbid is the field name
4 is the field value... (4 Replies)
Hi,
I have the following string and I need to extract the date from it:
TextHere,2012/07/11,1
I tried using sed:
sed -n 's#^.*\({4}/{2}/{2}\).*$#\1#p'
But it doesn't return anything. The following line doesn't even return '2012':
sed -n 's/^.*\({4}\).*$/\1/p'
I used to use grep -o... (6 Replies)
Hello,
I have a file with a date field with various lengths. For example:
m/d/yyyy hh:mm or h:mm
mm/dd/yyyy hh:mm or h:mm
Is there a way using sed or awk to change the field to m/d/y ? I don't need the hours and minutes in that field, just the date in the proper format.
Thanks in... (6 Replies)
Hi
I have a shell variable storing DATE in YYYY-MM-DD format
is there a way i extract required field say only DD
Also, would be great if there is a way which could take date format as well so that code is generic for any date format eg DDMMYYYY or DD/MM/YYYY or YYYY/MM/DD etc.
Thanks (4 Replies)
Hi,
I have a string with name as 20140412-s1-Potopolive_promos_20140412. So I want to extract only Potopolive string. Could you please help me the command.
O/p : Potopolive
Thx in advance (5 Replies)