Sponsored Content
Top Forums Shell Programming and Scripting Have to learn sed and awk commands in kSH? Post 302492621 by Jotne on Tuesday 1st of February 2011 03:12:45 AM
Old 02-01-2011
 

10 More Discussions You Might Find Interesting

1. Solaris

can someone provide me with url or document to learn solaris commands easily???

HEllo guys, If somebody knowing the url or a document then please reply me i am in need of most useful solaris commands its really urgent... (1 Reply)
Discussion started by: lokeshpashine
1 Replies

2. Shell Programming and Scripting

Using variables within awk/sed commands

Can I use my own variables within awk and sed for example: I've written a while loop with a counter $i and I want to use the value of $i within sed and awk to edit certain lines of text within a data file. I want to use : sed '1s/$/texthere/g' data.csv Like this: sed '$is/$/$age/g' data.csv... (5 Replies)
Discussion started by: mustaine85
5 Replies

3. Linux

Adding a prefix to a column using awk/sed commands

Hello, I am a newbie to linux and struggling to find a better way to append a column in a text file. Here is the file i want to modify: It has 8 columns (and thousands of rows). I want to append the first column by adding "chr" infront of the numbers. Some rows have a string in the first... (4 Replies)
Discussion started by: bjorngill
4 Replies

4. Shell Programming and Scripting

it's ok to learn awk and not learning sed?

please reflect... since I am beginner and dont know what to do ---------- Post updated at 04:25 AM ---------- Previous update was at 04:19 AM ---------- I am aware that awk is programming language and sed is just a tool (however people created some games with it). thanks (2 Replies)
Discussion started by: c_lady
2 Replies

5. Shell Programming and Scripting

KSH: substitution character, AWK or SED?

Hi Gurus, I am working with a korn shell script. I should replace in a very great file the character ";" with a space. Example: 2750;~ 2734;~ 2778;~ 2751;~ 2751;~ 2752;~ what the fastest method is? Sed? Awk? Speed is dead main point, Seen the dimensions of the files Thanks (6 Replies)
Discussion started by: GERMANICO
6 Replies

6. Shell Programming and Scripting

SED sub commands in KSH not working for me

I am using SED to edit a file (called file) the file contains the word "ERROR" and I want to use SED to: 1. Search for text "ERROR" If found, 2. Append new line with text "hoi" I tried: sed 's/ERROR/ a\hoi' file sed 's/ERROR/ a\ hoi' file I get all the time the error sed:... (7 Replies)
Discussion started by: Alex400
7 Replies

7. Shell Programming and Scripting

Variables into SED or AWK and multiple commands

Hello I am hoping you may help. I am not sure how to go about this exactly, I know the tools but not sure how to make them work together. I have two SED commands that I would like to run in a shell script. I would like to take the manual input of a user (types in when prompted) to be used... (4 Replies)
Discussion started by: lostincashe
4 Replies

8. Shell Programming and Scripting

awk or sed or any commands to stripe data

Say i have: g_gateway domain="abc.com" to="123.123.123.123" relay="false" how do i use awk or sed or any method to get the result below: abc.com 123.123.123.123 (3 Replies)
Discussion started by: timmywong
3 Replies

9. Shell Programming and Scripting

Trouble using awk and sed commands

Hi i have a control file which i need to read. It is ',' separated. the 3rd parameter will be ';' separated. I have 2 files: /home/orig.txt /home/join.txt I need a O/P file name based on firstparameter_1.txt and it should have the content of /home/orig.txt and appended content from... (2 Replies)
Discussion started by: Ravindra Swan
2 Replies

10. Shell Programming and Scripting

sed commands success / fail from commandline vs ksh script

solaris 5.10 Generic_138888-03 sun4v sparc SUNW,Sun-Fire-T200 I need a sed command that tests true when presented with lines that contain either forward and backslash. input file: c:/myFile.txt c:\yourFile.txt It doesn't appear that sed (in my environment anyway) supports... (4 Replies)
Discussion started by: msutfin
4 Replies
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)
All times are GMT -4. The time now is 04:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy