08-11-2015
Thanks to all for your suggestions and Franklin52 code worked for me...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Howdy.
I know this is most likely possible using sed or awk or grep, most likely a combination of them together, but how would one go about running a grep like command on a file where you only try to match your pattern to the second field in a line, space delimited?
Example:
You are... (3 Replies)
Discussion started by: LordJezoX
3 Replies
2. Shell Programming and Scripting
I have a directory with a large # of files and in each file I am looking to match a string in one file with a string in the subsequent n file(s). If there is a match between a string in one file and a string in the next n file(s) then delete the subsequent duplicate file(s). Here is sample input:
... (2 Replies)
Discussion started by: sitney
2 Replies
3. Shell Programming and Scripting
I have one comma separated file (a.txt) with two or more records all matching except for the last column.
I would like to merge all matching lines into one and consolidate the last column, separated by ":". Does anyone know of a way to do this easily?
I've searched the forum but most talked... (6 Replies)
Discussion started by: giannicello
6 Replies
4. UNIX for Dummies Questions & Answers
Hiiii
I have a file which contains huge data as
a.dat:
PDE 1990 1 9 18 51 28.90 24.7500 95.2800 118.0 6.1 0.0 BURMA
event name: 010990D
time shift: 7.3000
half duration: 5.0000
latitude: 24.4200
longitude: 94.9500
depth: 129.6000
Mrr: ... (7 Replies)
Discussion started by: reva
7 Replies
5. Shell Programming and Scripting
Can someone tell me how I can do this?
e.g:
Say file1.txt contains:
today is monday
the 22 of
NOVEMBER
2010
and file2.txt contains:
the
11th
month
of
How do i replace the word NOVEMBER with (5 Replies)
Discussion started by: tuathan
5 Replies
6. Shell Programming and Scripting
I have a file file123.xml which looks like this
xmlEntry="username"="josh" <property="never_back_down">
phone="<178652>"
apn=property:address="wonderland"
xmlEntry="username"="jessica" <property="never_back_down">
phone="<178653>"
apn=property:address="wonderland"... (5 Replies)
Discussion started by: poga
5 Replies
7. Shell Programming and Scripting
Hello,
I try to script something (bash-script) and can not find a way to get and store a match into a variable from a line in a file. grep isn't useful as the matches are not returned - just colored. I can't get 'expr' to work for me. Is it necessary to use a perl-script with regex instead?
... (7 Replies)
Discussion started by: daWonderer
7 Replies
8. Shell Programming and Scripting
Hi
I have below script which is used to grep specific errors and if error string matches send an email alert.
Script is working fine , however , i wish to print next 10 lines of the string match to get the details of error in the email alert
Current code:-
#!/bin/bash
tail -Fn0 --retry... (2 Replies)
Discussion started by: neha0785
2 Replies
9. Shell Programming and Scripting
Hi
I have a txt file and I would like to use egrep without using -v option to exclude the lines which matches with multiple Strings.
Let's say I have some text in the txt file. The command should not fetch lines if they have strings something like
CAT MAT DAT
The command should fetch me... (4 Replies)
Discussion started by: Sathwik
4 Replies
10. Shell Programming and Scripting
I have a file comp.pkglist which mention package version and release . In 'version change' and 'release change' line there are two versions 'old' and 'new' Version Change: --> Release Change: -->
cat comp.pkglist
Package list: nss-util-devel-3.28.4-1.el6_9.x86_64
Version Change: 3.28.4 -->... (1 Reply)
Discussion started by: Paras Pandey
1 Replies
LEARN ABOUT DEBIAN
padre::plugin::spellcheck::engine
Padre::Plugin::SpellCheck::Engine(3pm) User Contributed Perl Documentation Padre::Plugin::SpellCheck::Engine(3pm)
NAME
Padre::Plugin::SpellCheck::Engine - Check spelling in Padre, The Perl IDE.
VERSION
version 1.29
PUBLIC METHODS
Constructor
my $engine = PPS::Engine->new;
Create a new engine to be used later on.
Instance methods
o my ($word, $pos) = $engine->check( $text );
Spell check $text (according to current speller), and return the first error encountered (undef if no spelling mistake). An error is
reported as the faulty $word, as well as the $pos of the word in the text (position of the start of the faulty word).
o $engine->set_ignore_word( $word );
Tell engine to ignore $word for rest of the spell check.
o my @dictionaries = $engine->dictionaries;
Return a (reduced) list of dictionaries installed with aspell. The names returned are the dictionary locale names (eg "en_US"). Note
that only plain locales are reported, the variations coming with aspell are stripped.
o my @suggestions = $engine->get_suggestions( $word );
Return suggestions for $word.
BUGS AND LIMITATIONS
Text::Hunspell hard coded for /usr/share/hunspell/
DEPENDENCIES
Padre, Class::XSAccessor and either or ( Text::Hunspell or Text::Aspell )
SEE ALSO
For all related information (bug reporting, source code repository, etc.), refer to Padre::Plugin::SpellCheck.
AUTHORS
Kevin Dawson <bowtie@cpan.org>
Ahmad M. Zawawi <ahmad.zawawi@gmail.com>
Fayland Lam <fayland@gmail.com>
Jerome Quelin <jquelin@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Fayland Lam, Jerome Quelin.
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-06-19 Padre::Plugin::SpellCheck::Engine(3pm)