Hi All,
I have a text / log file which contains strings like meta777, 77, meta, 777. Now I want to write a script which can detect a string 'meta#777' in a text file & number of occurence of 'meta', number of #, number 7, 77, 777.
I'm using grep -e '77' filename but no luck. It is returning string with 777 also. How to get the exact string. Please help me. Thanks in Advance.
Below are some lines from that file-
Last edited by Scrutinizer; 06-15-2012 at 01:43 AM..
Reason: code tags
Hi All,
I have a quary regarding grep command in linux.
I have a file which contains
56677
56677
+56677
+56677
56677
56677
56677
I want to extract total count of "56677"
When I hit the following command
#cat filename | grep -w -c '56677'
the result comes 7. Its counting... (3 Replies)
Hi all,
Is anyone able to help with the following query?
I have an input file with several lines of words, e.g.
"hellolaylahello"
"hellohellohellolayla"
I want to search for the exact string "hello" in each line and display:
2 "hellolaylahello"
3 "hellohellohellolayla"
I... (11 Replies)
Hi there,
I've search this forum and find this problem could have been solved by,
grep -ho "num=*" input_data
The input_data is,
1\11\num1=100\num2=200\newnum1=220\\@
however, what I have got is ,
num1=100
num1=220
how to get the exact string, (4 Replies)
QUESTION1:
How do you grep only an exact string. I am using Solaris10 and do not have any GNU products installed.
Contents of car.txt
CAR1_KEY0
CAR1_KEY1
CAR2_KEY0
CAR2_KEY1
CAR1_KEY10
CURRENT COMMAND LINE: WHERE VARIABLE CAR_NUMBER=1 AND KEY_NUMBER=1
grep... (1 Reply)
I am attempting to grep an exact string from a series of files within a directory and append that output to the filename when it is present in the file. I've been after this all day with no luck. Thanks for your help in advance :wall:. (4 Replies)
This may be stupid question but not able to solve it.
How to grep exact word and line along with it.
TEST:/u00/app/oracle/product/10.2.0/TEST:N
TEST2:/u00/app/oracle/product/10.2.0/ODS:N
TEST3:/u00/app/oracle/product/10.2.0/TEST:N
TEST4:/u00/app/oracle/product/10.2.0/ODS:N... (4 Replies)
Hi ,
am getting output file, it sontains the below values.
./hawk_DOM1_FIRST_ENV
./hawk_DOM2_SECOND_ENV
./hawk_DOM3_THIRD_ENV
Now I need to grep the word "DOM1_FIRST_ENV","DOM2_SECOND_ENV"
like that.
I tired with cut -d "_". Its not working with any deleimiter.
Can you please help to... (3 Replies)
Hi all,
I tried searching the forum for this, and I read numerous suggestions here and even on other forums, and I cannot get this to want the way that I need it to. I tried grep -W / -f to no luck. Here is what I have. I have a list of file names-
FILE1-FILE1TEST,FILE1RELATION... (7 Replies)
Hi
I am trying to grep multiple exact word from log file and directing it to a new file.
however my log file has many numeric values, such as 0400, 0401, 0404
and all html error also starts with 404, 401 etc
so I just want to grep only when 404, 401 etc is coming, NOT 0400, OR 0401
i have... (8 Replies)
Hi All,
i want exact math to search to find it and i tried as like below it not working.
My Excepted out : should not get the output that mean exact word math.
echo "test.txt|123"|sed 's/|/ /g'|grep -w "test"
Thanks (1 Reply)
Discussion started by: bmk123
1 Replies
LEARN ABOUT DEBIAN
module::install::doapchangesets
Module::Install::DOAPChangeSets(3pm) User Contributed Perl Documentation Module::Install::DOAPChangeSets(3pm)NAME
Module::Install::DOAPChangeSets - write your distribution change log in RDF
DESCRIPTION
This package allows you to write your Changes file in Turtle or RDF/XML and autogenerate a human-readable text file.
To do this, create an RDF file called "meta/changes.ttl" (or something like that) and describe your distribution's changes in RDF using the
Dublin Core, DOAP, and DOAP Change Sets vocabularies. Then in your Makefile.PL, include:
write_doap_changes "meta/changes.ttl", "Changes", "turtle";
This line will read your data from the file named as the first argument, parse it using either Turtle or RDFXML parsers (the third
argument), and output a human-readable changelog to the file named as the second argument.
The defaults are "meta/changes.ttl", "Changes", "turtle", so if you name the files like that, then you can exclude all the arguments and
just include this in your Makefile.PL:
write_doap_changes;
There's also a line you can use to output a Changes.xml file:
write_doap_changes_xml "meta/changes.ttl", "Changes.xml", "turtle";
Integration with Module::Install::RDF
Module::Install::RDF reads all the RDF it can find in 'meta'. If you invoke Module::Install::RDF before invoking
Module::Install::DOAPChangeSets, then this module will use Module::Install::RDF's copy of the data.
WHY ?
Why not?
BUGS
Please report any bugs to <http://rt.cpan.org/>.
SEE ALSO
Module::Install, Module::Install::DOAPChangeSets::Format , Module::Install::RDF.
<http://www.perlrdf.org/>.
AUTHOR
Toby Inkster <tobyink@cpan.org>.
COPYRIGHT AND LICENSE
Copyright (C) 2010-2011 by Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-01-18 Module::Install::DOAPChangeSets(3pm)