06-11-2010
The only pattern I found is this.
search for this line "Content-Type: text" , and while not "--" print.
Content-Type: text/plain; charset=ISO-8859-1
--
but I have no idea from how to make it.
Last edited by waxo; 06-11-2010 at 09:16 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have this text in a file where I need to move part of the text....
<Relation1 OriginatingObjectID="Holding_1" RelatedObjectID="Party_1" id="Relation_1">
<OriginatingObjectType tc="4">Holding</OriginatingObjectType>
<RelatedObjectType tc="6">Party</RelatedObjectType>... (4 Replies)
Discussion started by: mgirinath
4 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I want to extract a part of filename and pass it as a parameter to one of the scripts. Could someone help.
File name:-
NLL_NAM_XXXXX.XXXXXXX_1_1.txt.
Here i have to extract only XXXXX.XXXXXXX and the position will be constant. that means that i have to extract some n characters from... (6 Replies)
Discussion started by: dnat
6 Replies
3. Shell Programming and Scripting
Hi there,
I'm having some problem with UNIX scripting (ksh), perhaps somebody can help me out?
For example:
------------
Sample content of my log file (text file):
--------------------------------------
File1: ....
info_1 ...
info_2 ...
info_3 ...
File2: ....
info_1 ...
info_2 ...... (10 Replies)
Discussion started by: superHonda123
10 Replies
4. Programming
needa c program to extract text between two delimiters from some text file.
and then storing them in to diffrent variables ?
text file like 0:
abc.txt
=========
aaaaaa|11111111|sssssssssss|333333|ddddddddd|34343454564|asass
aaaaaa|11111111|sssssssssss|333333|ddddddddd|34343454564|asass... (7 Replies)
Discussion started by: kukretiabhi13
7 Replies
5. Shell Programming and Scripting
Hi guys
So I have a very large log file where each event is logged along with the time that it occurred.
So for e.g. The contents of the file look like:
...
12:00:07 event 0 happened.
12:01:01 event 1 happened.
12:01:05 event 2 happened.
12:01:30 event 3 happened.
12:02:01 event 4... (10 Replies)
Discussion started by: alinaqvi90
10 Replies
6. Shell Programming and Scripting
Hello All,
I need to extract part of a file into a new file
My file is
Define schema xxxxxx
Insert into table
(
a
,b
,c
,d
)
values
(
1,
2,
3, (15 Replies)
Discussion started by: nnani
15 Replies
7. Shell Programming and Scripting
I have a text file, input.fasta contains some protein sequences. input.fasta is shown below.
>P02649
MKVLWAALLVTFLAGCQAKVEQAVETEPEPELRQQTEWQSGQRWELALGRFWDYLRWVQT
LSEQVQEELLSSQVTQELRALMDETMKELKAYKSELEEQLTPVAEETRARLSKELQAAQA
RLGADMEDVCGRLVQYRGEVQAMLGQSTEELRVRLASHLRKLRKRLLRDADDLQKRLAVY... (8 Replies)
Discussion started by: rahim42
8 Replies
8. Programming
I need to save part of a file to a different one, start and end offset bytes are provided by two counters in long format. If the difference is big, how should I do it to prevent buffer overflow in java? (7 Replies)
Discussion started by: Tribe
7 Replies
9. Shell Programming and Scripting
I have a variable and assigned the following values
***XYZ_201519_20150929140642_20150929140644_211_0_0_211
I need to read this variable from backward and stop read when I get first underscore (_)
In this scenario I should get 211
Thanks
Kris (3 Replies)
Discussion started by: mkris
3 Replies
10. Shell Programming and Scripting
Hi,
I need to extract part of a text to two variables
text is
"PL/SQL procedure successfully completed. ERROR ----------------------------------------------------------------- Test Error Message PLUSVAR ---------- 1"
I want "Test Error Message" in one variable and "1" in another variable.... (11 Replies)
Discussion started by: vedavrath
11 Replies
LEARN ABOUT DEBIAN
config::model::models::debian::dpkg::copyright::content
Config::Model::models::Debian::Dpkg::Copyright::Content(User Contributed Perl DocumentConfig::Model::models::Debian::Dpkg::Copyright::Content(3pm)
NAME
Config::Model::models::Debian::Dpkg::Copyright::Content - Configuration class Debian::Dpkg::Copyright::Content
VERSION
version 2.021
DESCRIPTION
Configuration classes used by Config::Model
Elements
Copyright
One or more free-form copyright statement(s), one per line, that apply to the files matched by the above pattern. If a work has no
copyright holder (i.e., it is in the public domain), that information should be recorded here.
The Copyright field collects all relevant copyright notices for the files of this paragraph. Not all copyright notices may apply to every
individual file, and years of publication for one copyright holder may be gathered together. For example, if file A has:
Copyright 2008 John Smith Copyright 2009 Angela Watts
and file B has:
Copyright 2010 Angela Watts
the Copyright field for a stanza covering both file A and file B need contain only:
Copyright 2008 John Smith Copyright 2009, 2010 Angela Watts
The Copyright field may contain the original copyright statement copied exactly (including the word Copyright), or it can shorten the text,
as long as it does not sacrifice information. Examples in this specification use both forms.Mandatory. Type string.
License
Optional. Type node.
License-Alias
Deprecated Optional. Type uniline.
Comment
This field can provide additional information. For example, it might quote an e-mail from upstream justifying why the license is acceptable
to the main archive, or an explanation of how this version of the package has been forked from a version known to be DFSG-free, even though
the current upstream version is not.Optional. Type string.
Note: Comment is migrated with '$old' and with $old => ""- X-Comment""
X-Comment
Deprecated Optional. Type string.
SEE ALSO
o cme
o Config::Model::models::Debian::Dpkg::Copyright::FileLicense
AUTHOR
Dominique Dumont
COPYRIGHT
2010,2011 Dominique Dumont
LICENSE
LGPL2
perl v5.14.2 2012-11-09 Config::Model::models::Debian::Dpkg::Copyright::Content(3pm)