Man pages are displayed on $PAGER, so you get your choice. The default is more or less. I use pg when i can get it. However, pager regex rules are a bit kinky.
Beyond what the more or less man page says about pattern searching and moving forward and, if you have a file input, backward:
The man pages have teletype print artifacts in them like "_\ba" for underscored "a" and "c\bc" for bold "c" (\b is backspace to overstrike). You can write a sed routine to flush out the .\b or you can use a web man page.
Last edited by DGPickett; 10-22-2010 at 06:02 PM..
Hi, Can you help please.
I have the following comand:
if ]; then
l_valid_string="Y"
fi
The problem I am trying to solve is that my l_string = ABC and my file contains
ABC
ABC_EFG
I only want back the value ABC exact match. (3 Replies)
Hi All,
I have 2 programs running by the following names:
a_testloop.sh
testloop.sh
I read these programs names from a file and store each of them into a variable called $program.
On the completion of the above programs i should send an email.
When i use grep with ps to see if any of... (3 Replies)
Hi All,
I need to search in a csv file as mentioend in the Appendix A for a exact word lets "TEST".
But using teh below command iam getting TEST1234, TEST12 and otehr entries as well.
the problem is i check this condition to check to add a record to a table by making sure it does not... (16 Replies)
I am trying to match a pattern exactly in a shell script. I have tried two methods
awk '/\<mpath${CURR_MP}\>/{print $1 $2}' multipath
perl -ne '/\bmpath${CURR_MP}\b/ and print' /var/tmp/multipath
Both these methods require that I use the escape character. I am guessing that is why... (8 Replies)
Hello Everyone,
Im trying to run a search and replace of exact strings and the strings that im using variables that are passed through an array in a while loop. Here is a snip of my code:
USEROLD=`cat oldusers`
USERNEW=`cat newusers`
USEROLDARRAY=( $USEROLD )
USERNEWARRAY=( $USERNEW )... (4 Replies)
I have a file
DS1
DDS
DS
I want to replace only "DS" to "DSmail.blah.com" in a lot of files. I tried
sed 's/DS/DSmail.blah.com' but it changes all the lines .
thanks in advance (2 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)
I need to search the file using strings "Request Type" , " Request Method" , "Response Type" and by using result set find the xml tags and convert into a single line?. below are the scenarios.
Cat test
Nov 10, 2012 5:17:53 AM
INFO: Request Type
Line 1.... (5 Replies)
Hi,
Need your help for this scripting issue I have. I am not really good at this, so seeking your help.
I have a file looking similar to this:
Hello, i am human and name=ABCD.
How are you?
Hello, i am human and name=PQRS.
I am good.
Hello, i am human and name=ABCD.
Good bye.
Hello, i... (12 Replies)
Discussion started by: royzlife
12 Replies
LEARN ABOUT DEBIAN
www::search::altavista
WWW::Search::AltaVista(3pm) User Contributed Perl Documentation WWW::Search::AltaVista(3pm)NAME
WWW::Search::AltaVista - class for searching www.altavista.com
SYNOPSIS
require WWW::Search;
$search = new WWW::Search('AltaVista');
DESCRIPTION
This class is an AltaVista specialization of WWW::Search. It handles making and interpreting AltaVista searches http://www.altavista.com.
This class exports no public interface; all interaction should be done through WWW::Search objects.
OPTIONS
The default is "any of these words" (OR of query terms).
aqa=all+of+these+words
Add the AND of these words to the query.
aqp=this+exact+phrase
Add "this exact phrase" to the query.
aqo=any+of+these+words
Add the OR of these words to the query. This is where the query is placed by default.
aqn=none+of+these+words
Add NOT these words to the query.
aqb=(boolean+AND+expression)+NEAR+entry
Add a boolean expression to the query. Operators are AND, OR, AND NOT, and NEAR. In the browser interface, the boolean expression
can not be combined with any other query types listed above. You should probably build the boolean expression with parentheses and
spaces and urlescape it.
aqs=these+words
Pages containing "these words" will be ranked highest.
kgs=[0,1]
To restrict the search to U.S. websites, set kgs=1. The default is world-wide, kgs=0.
kls=[0,1]
To restrict the search to pages in English and Spanish, set kls=1. The default is no language restrictions, kls=0.
filetype=[html,pdf]
To restrict the search to HTML pages only, set filetype=html. To restrict the search to PDF pages only, set filetype=pdf. The
default is no restriction on page type, filetype=.
rc=dmn&swd=net+org+or.jp
To restrict the search to pages from certain domains, set rc=dmn and set swd to a list of desired toplevel domains.
rc=url&lh=www.sandcrawler.com/SWB
To restrict the search to pages from a particular site, set rc=url and set lh to the site name and path. Leave off the http://
from the site.
PUBLIC METHODS
gui_query
Call this instead of native_query() if you want to get the same results as your average Joe web surfer.
PRIVATE METHODS
native_setup_search
This private method does the heavy lifting after you call native_query() or gui_query().
parse_tree
This private method does the hard work of parsing the results out of the HTML.
BUGS
Not all of the above options have been tested.
Please report bugs and send feature requests via email to "bug-WWW-Search-AltaVista@rt.cpan.org", or via the web interface at
https://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-Search-AltaVista <https://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-Search-AltaVista>.
SEE ALSO
To make new back-ends, see WWW::Search, or the specialized AltaVista searches described in options.
AUTHOR
Written by John Heidemann, "johnh@isi.edu"; maintained by Martin Thurn, "mthurn@cpan.org".
LICENSE
This software is released under the same license as Perl itself.
COPYRIGHT
Copyright (c) 1996-1998 University of Southern California. All rights reserved.
Redistribution and use in source and binary forms are permitted provided that the above copyright notice and this paragraph are duplicated
in all such forms and that any documentation, advertising materials, and other materials related to such distribution and use acknowledge
that the software was developed by the University of Southern California, Information Sciences Institute. The name of the University may
not be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
perl v5.12.4 2011-11-02 WWW::Search::AltaVista(3pm)