Hi All,
I'm working on a large file and need to extract all data between 2 strings. I have seen many good solutions to threads almost like my problem but none that quite fit.
This is all very new to me so any ideas would be really appreciated! (attempted to read sed and awk tutorials but got a... (9 Replies)
Hi All,
I have a file in which i want to print all the lines between 2 defined strings. Ex- I have file with data as follows
STEP1:-
----- has some 20 -30 lines of data
STEP2:-
----- has some 20 -30 lines of data
So i want to print those lines between STEP1 & STEP2. (line including STEP1)... (7 Replies)
hi all! i have a file like this
lea 25 female
dave 18 male
jake 27 male
and i want to have an output file like this
my name is lea. i am 25. female
my name is dave. i am 18. male
my name is jake. i am 27. male
thanks! (2 Replies)
Hi,
Here is an example:
I have a grep line:
grep -i -r -H "$WORD" "$DIRECTORY"with an output like this:
/media/dir/dir2//dir4/file.txt:/media/dir/dir2/dir3/file_16072008/es6.txt: "content of the file found from grep"/media/dir/dir2/dir3/dir4/file3.txt:/media/dir/dir2/dir3//file.txt:"other... (3 Replies)
I cannot seem to get what should be a simple awk one-liner to work correctly and cannot figure out why. I would like to use patterns from a specific field in one file as regex to search for matching strings in the entire line ($0) of another file.
I would like to output the lines of File2 which... (1 Reply)
I am using bash in Fedora 30
From the below lines (ls -l output), how can I print whatever is between the strings 'status_' and '.log'
$ ls -l | grep -i status
-rw-rw-r--. 1 sysadmin sysadmin 378530 Nov 11 21:58 status_vsbm1.log
-rw-rw-r--. 1 sysadmin sysadmin 428776 Nov 11 21:58... (8 Replies)
Discussion started by: kraljic
8 Replies
LEARN ABOUT DEBIAN
debian::javahelper::manifest
Debian::Javahelper::Manifest(3) Javahelper Debian::Javahelper::Manifest(3)NAME
Debian::Javahelper::Manifest - Javahelper representation of a Jar Manifest
SYNOPSIS
use Debian::Javahelper::Java;
my $manifest = ...;
my $main_sec = $manifest->get_section(MAIN_SECTION);
# Create if it does not exist.
my $file_sec = $manifest->get_section("java/lang/Object.class", 1);
DESCRIPTION
This module is used to represent a Java Manifest.
Constants
MAIN_SECTION
A constant denoting the main section of the manifest.
Exported by default.
Methods
Debian::Javahelper::Manifest->new()
Creates a new manifest. It will only contain the main section with the Manifest-Version attribute.
$manifest->get_section($name[, $create])
Returns the section denoted by $name. If this section does not exist, then it will either return undef or (if $create is a truth-value)
create a new empty section with that name.
Use the MAIN_SECTION constant to access the main section of the manifest.
$manifest->get_sections()
Returns a list of all sections in $manifest. The main section will always be the first in the list, but the remaining sections can come
in any order (and this order can change in later invocations).
Modifying the list will not change which sections are present in $manifest, but modifying a section in this list will also update the
section in the manifest.
$manifest->merge($other)
Merge all entries in $other into $manifest. All sections in $other will be added to $manifest if they are not already present.
If an attribute in a given section is only present in one of the two manifests, then that attribute and its value will be in $manifest
after merge returns.
If the attribute in a given section is present in both manifests, then the value from $other will be used.
This can be used to make a deep copy a manifest:
my $copy = Debian::Javahelper::Manifest->new();
$copy->merge($orig);
SEE ALSO Debian::Javahelper::Java(3) - had parse/write methods for manifests. Debian::Javahelper::ManifestSection(3) - for how sections are
handled.
AUTHOR
Niels Thykier <niels@thykier.net>
COPYRIGHT AND LICENSE
Copyright 2010 by Niels Thykier
This module is free software; you may redistribute it and/or modify it under the terms of GNU GPL 2.
0.43 2011-02-17 Debian::Javahelper::Manifest(3)