A typical line looks like this...
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=129 COMMENT='Compiled E-Mails';I want to remove DEFAULT CHARSET= and COLLATE= after resetting AUTO_INCREMENT=0
I do not want to change the engine and comment. (7 Replies)
Hi,
I understand either AWK or SED can do this, but I not sure how to extract the following configuration in section. Meaning when I need to find code with " ip helper-address 192.168.11.2" , it would start from "interface Serial0/0" and "interface FastEthernet0/1". Only displaying both section... (2 Replies)
I have a list of Servers in no particular order as follows:
virtualMachines="IIBSBS IIBVICDMS01 IIBVICMA01"And I am generating some output from a pre-existing script that gives me the following (this is a sample output selection).
9/17/2010 8:00:05 PM: Normal backup using VDRBACKUPS... (2 Replies)
I need to remove the <BR> from all sections of a page, except what is between a section of text:
#!/bin/sh
sed '
/Testing Considerations/,/<B>PT# - Description:/ ! {
s/<BR>//
}
'
But this isn't working. I'm not using the ! operator correctly, can someone... (2 Replies)
Hi Everyone,
I need some help to accomplish the below. help is highly appriciated.
I have a 45 mb file with ldap entries. Each user entry is separated by a string # entry-id: 1 and so on. Some of the entries has a string xyz: true. I want to delete the section if the user section has xyz: true... (6 Replies)
I have a data file like below:
2011 0701 2015 21.2 L 37.692 46.202 18.0 Teh 4 0.3 2.1 LTeh 1
GAP=233 E
Iranian Seismological Center, Institute of Geophysics, University of Tehran 6
STAT SP IPHASW D HRMM SECON CODA AMPLIT PERI AZIMU VELO SNR AR TRES W DIS CAZ7
TBZ SN EPg 0 2015 31.19 -0.3... (3 Replies)
Hi, I have a log file from Munin like this:2012/12/04 13:45:31 : Munin-update finished (29.68 sec)
2012/12/04 13:50:01 Opened log file
2012/12/04 13:50:01 : Starting munin-update
2012/12/04 13:50:01 Error occured in under in the configuration.
2012/12/04 13:50:01 Could not parse datafile... (9 Replies)
Hi Guru's,
I am new to unix scripting. I have a huge file with user details in it(file2) and I have another file with a list of users(file1). Script has to search a user from file1 and get all the associated lines from file2.
Example:
fiel1:
cn=abc
cn=DEF
cn=xyx
File 2:
dn:... (10 Replies)
Hello,
I have a log file that has several sections "BEGIN JOB, End of job" like in the following example:
19/06/12 - 16:00:57 (27787398-449294): BEGIN JOB j1(27787398-449294) JOB1
19/06/12 - 16:00:57 (27787398-449294): DIGIT: 0
number of present logs : 1
19/06/12 - 16:00:57... (4 Replies)
Discussion started by: mvalonso
4 Replies
LEARN ABOUT DEBIAN
courriel::header::disposition
Courriel::Header::Disposition(3pm) User Contributed Perl Documentation Courriel::Header::Disposition(3pm)NAME
Courriel::Header::Disposition - The content disposition for an email part
VERSION
version 0.29
SYNOPSIS
my $disp = $part->content_disposition();
print $disp->is_inline();
print $disp->is_attachment();
print $disp->filename();
my %attr = $disp->attributes();
while ( my ( $k, $v ) = each %attr ) {
print "$k => $v
";
}
DESCRIPTION
This class represents the contents of a "Content-Disposition" header attached to an email part. Such headers indicate whether or not a part
should be considered an attachment or should be displayed to the user directly. This header may also include information about the
attachment's filename, creation date, etc.
Here are some typical headers:
Content-Disposition: inline
Content-Disposition: multipart/alternative; boundary=abcdefghijk
Content-Disposition: attachment; filename="Filename.jpg"
Content-Disposition: attachment; filename="foo-bar.jpg";
creation-date="Tue, 31 May 2011 09:41:13 -0700"
API
This class supports the following methods:
Courriel::Header::Disposition->new_from_value( ... )
This takes two parameters, "name" and "value". The "name" is optional, and defaults to "Content-Disposition".
The "value" is parsed and split up into the disposition and attributes.
Courriel::Header::Disposition->new( ... )
This method creates a new object. It accepts the following parameters:
o name
This defaults to 'Content-Type'.
o value
This is the full header value.
o disposition
This should usually either be "inline" or "attachment".
In theory, the RFCs allow other values.
o attributes
A hash reference of attributes from the header, such as a filename, creation date, size, etc. The keys are attribute names and the
values can either be strings or Courriel::HeaderAttribute objects. Values which are strings will be inflated into objects by the
constructor.
This is optional, and can be an empty hash reference or omitted entirely.
$ct->name()
The header name, usually "Content-Disposition".
$ct->value()
The raw header value.
$disp->disposition()
Returns the disposition value passed to the constructor.
$disp->is_inline()
Returns true if the disposition is not equal to "attachment".
$disp->is_attachment()
Returns true if the disposition is equal to "attachment".
$disp->filename()
Returns the filename found in the attributes, or "undef".
$disp->creation_datetime(), $disp->last_modified_datetime(), $disp->read_datetime()
These methods look for a corresponding attribute ("creation-date", etc.) and return a DateTime object representing that attribute's value,
if it exists.
$disp->attributes()
Returns a hash (not a reference) of the attributes passed to the constructor.
Attributes are Courriel::HeaderAttribute objects.
The keys of the hash are all lower case, though the original casing is preserved in the "name()" returned by the Courriel::HeaderAttribute
object.
$disp->attribute($key)
Given a key, returns the named Courriel::HeaderAttribute object. Obviously, this value can be "undef" if the attribute doesn't exist. Name
lookup is case-insensitive.
$disp->attribute_value($key)
Given a key, returns the named attribute's value as a string. Obviously, this value can be "undef" if the attribute doesn't exist. Name
lookup is case-insensitive.
The attribute is a Courriel::HeaderAttribute object.
$disp->as_header_value()
Returns the object as a string suitable for a header value (but not folded).
EXTENDS
This class extends Courriel::Header.
ROLES
This class does the Courriel::Role::HeaderWithAttributes role.
AUTHOR
Dave Rolsky <autarch@urth.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
perl v5.14.2 2012-03-07 Courriel::Header::Disposition(3pm)