using grep, i have a file emp.lst, and i want all those records
where "S" or "s" (capital or small) is not there
i used this
grep emp.lst
when i use grep emp.lst
i am getting rows with S..but why negate (^) is not working? (3 Replies)
<record>
<set>
<termId>1234</termId>
<termType>First</termType>
</set>
<set>
<termId>5678</termId>
<termType>Second</termType>
</set>
</record>
This is saved in record.xml
Hi
I have this sample XML that i am grepping using a shell program.
The objective of the task is - based... (7 Replies)
The below command is not working
stackmem="$(pmap $1 | grep -i '' | awk '{print $2}'| tr -d ' K')"
I need to grep strictly for ---->
Regards,
Mohtashim (2 Replies)
more Hello.txt
it was a sunny way and i was about to go home.
I need to grep and redirect to a new file all the text between 'sunny' and 'go' string above.
Note: There may be multiple lines in between the string i need to grep between. If there are multiple 'go' strings it should grep till... (9 Replies)
Hi All
I have a file containing following records:
$HEW_TGT_DB2_USER=hbme_bi2
$prmAttunityUser=ais
$DS_USER=hbme_bi2
$prmStgUser=hbme_bi2
$prmuser=hbme_bi2
$prmStgPass=hbme_bi2
$prmpwd=hbme_bi2
$prmAttunityUser=ais
Say suppose the name of the file is test4.txt
When i fire this... (2 Replies)
i have following pattern in file
s6:s2
s2:s4
s1:s2:s3:s4:s5:s6
s1
.
.
Now i want to find occurence of each record in file like s6:s2 occurs twice {once in first record and both occur in 3 record as well}
so output should be
s6:s2 2
s2:s4 2
s1:s2:s3:s4:s5:s6 :1
s1 : 2
... (7 Replies)
Hi Guys,
I am new to shell scripting. Need help on grep command. I had a file called file.log which contain below statements.
12 Nov 2013 14:12:17,756 INFO security - Userid: raja, Saved File Instance, Name: , Registry:
23 Nov 2013 14:14:11,777 INFO security - Userid: raja, Saved... (7 Replies)
Hello, I have an input file that looks like so:
LDLR
LDLRAD4
VLDLR
when I grep "LDLR" I get an output of:
LDLR
LDLRAD4
VLDLR
Since all names have "LDLR" included within them, but all I want the output to be is
LDLR
I know it can work if I surround the words with pipes for... (5 Replies)
Hi guys,
Hope someone can help me with this - I'm sure it's fairly simple but it's driving me mad! (forgive the coding - still new on scripting - come from Windows)
I have the following coding for checking whether I want to include a line in a file:-
EXTRACT_Date=$(date --date="${PERIOD}"... (6 Replies)
Discussion started by: NickF
6 Replies
LEARN ABOUT DEBIAN
software::license
Software::License(3pm) User Contributed Perl Documentation Software::License(3pm)NAME
Software::License - packages that provide templated software licenses
VERSION
version 0.103004
SYNOPSIS
my $license = Software::License::Discordian->new({
holder => 'Ricardo Signes',
});
print $output_fh $license->fulltext;
METHODS
new
my $license = $subclass->new(\%arg);
This method returns a new license object for the given license class. Valid arguments are:
holder - the holder of the copyright; required
year - the year of copyright; defaults to current year
new_from_short_name
my $license = Software::License -> new_from_short_name(
{ short_name => 'GPL-1', %arg }
);
This constructor will return the correct subclass depending on "short_name" value.
year
holder
These methods are attribute readers.
name
This method returns the name of the license, suitable for shoving in the middle of a sentence, generally with a leading capitalized "The."
url
This method returns the URL at which a canonical text of the license can be found, if one is available. If possible, this will point at
plain text, but it may point to an HTML resource.
notice
This method returns a snippet of text, usually a few lines, indicating the copyright holder and year of copyright, as well as an indication
of the license under which the software is distributed.
license
This method returns the full text of the license.
fulltext
This method returns the complete text of the license, preceded by the copyright notice.
version
This method returns the version of the license. If the license is not versioned, this method will return false.
meta_name
This method returns the string that should be used for this license in the CPAN META.yml file, according to the CPAN Meta spec v1, or undef
if there is no known string to use.
This method may also be invoked as "meta_yml_name" for legacy reasons.
meta2_name
This method returns the string that should be used for this license in the CPAN META.json or META.yml file, according to the CPAN Meta spec
v2, or undef if there is no known string to use. If this method does not exist, and "meta_name" returns open_source, restricted,
unrestricted, or unknown, that value will be used.
summary
This method returns a summary of the license. This summary must contains refer to a file containing the whole license. On Debian system,
the file containing the whole license will be in "/usr/share/common-licenses/" directory.
LOOKING UP LICENSE CLASSES
If you have an entry in a META.yml or META.json file, or similar metadata, and want to look up the Software::License class to use, there
are useful tools in Software::LicenseUtils.
TODO
o register licenses with aliases to allow $registry->get('gpl', 2);
SEE ALSO
The specific license:
o Software::License::AGPL_3
o Software::License::Apache_1_1
o Software::License::Apache_2_0
o Software::License::Artistic_1_0
o Software::License::Artistic_2_0
o Software::License::BSD
o Software::License::CC0
o Software::License::FreeBSD
o Software::License::GFDL_1_2
o Software::License::GPL_1
o Software::License::GPL_2
o Software::License::GPL_3
o Software::License::LGPL_2_1
o Software::License::LGPL_3_0
o Software::License::MIT
o Software::License::Mozilla_1_0
o Software::License::Mozilla_1_1
o Software::License::None
o Software::License::OpenSSL
o Software::License::Perl_5
o Software::License::QPL_1_0
o Software::License::SSLeay
o Software::License::Sun
o Software::License::Zlib
AUTHOR
Ricardo Signes <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-03-23 Software::License(3pm)