Sponsored Content
Top Forums Shell Programming and Scripting Search in variable for character Post 302137808 by rorey_breaker on Thursday 27th of September 2007 05:15:15 AM
Old 09-27-2007
Search in variable for character

qwertyuioplkjhgfdsa

Last edited by rorey_breaker; 10-23-2007 at 04:36 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Search for a non zero character in file

Hi, I have a log file which has entries as Staged 0 records from fn.dat (0 failed) 01/01 01:01:01 I 0 Error Transactions I want to find out any line that has an entry like "(1 failed)" or "(2 failed)" or any number in general ( >0 ) similarly it should search for string like "1... (4 Replies)
Discussion started by: misenkiser
4 Replies

2. UNIX for Dummies Questions & Answers

read a variable character by character, substitute characters with something else

im having trouble doing this: i have a variable with 2 characters repeating e.g. aababbbaaaababaabbaabbba is there a way i can search the variable for a's and b's and then change a's to b's and b's to a's? im guessing its like getting the 1's compliment of the string im doing this in... (2 Replies)
Discussion started by: vipervenom25
2 Replies

3. UNIX for Dummies Questions & Answers

to search for a particular character in a word

Hi I would like to accept in a string from user like username/pwd@dbname suppose the user does not input @ then i should throw an error that @ symbol missing . How to achieve this Thanks in advance Suresh (6 Replies)
Discussion started by: ssuresh1999
6 Replies

4. Shell Programming and Scripting

Removing a character from a variable and assigning it to another variable?

Hi folks. I have this variable called FirstIN that contains something like this: 001,002,003,004... I am trying to assign the content of this variable into ModifiedIN but with the following format : 001 002 003 004...(changing the commas for spaces) I thought about using sed but i am not... (17 Replies)
Discussion started by: Stephan
17 Replies

5. Shell Programming and Scripting

Search Character

Hi, I need to search the "BP1418" in xml file(the letter BP remain constant but the number changes randomly and it will be in double quotes) . Can you please let me know how to find these charater in unix. thanks (3 Replies)
Discussion started by: ravi214u
3 Replies

6. Shell Programming and Scripting

awk search for space character

How do I use awk to search for a string that contains a space bar? I have tried this awk '/send email/ {print $0}' input awk '/send\ email/ {print $0}' input (1 Reply)
Discussion started by: locoroco
1 Replies

7. Shell Programming and Scripting

Ls help: ls not working with start character search (^)

Experts, How to list a file using ^ character, for all files started with character a. (os= hp-ux ) # ls -l -rw------- 1 useradm users 0 Mar 26 14:30 abc -rw------- 1 useradm users 0 Mar 26 14:30 def -rw------- 1 useradm users 0 Mar 26... (7 Replies)
Discussion started by: rveri
7 Replies

8. UNIX for Dummies Questions & Answers

Search for a particular word and replace the first character

Hi Unix gurus, I've a dna sequence in a file format known as fasta format (sequence header starts with > and ignored), an example shown below: >sequence_1 CGTATTCTCCGAATACC ATACG >sequence_2 CAGATTTTCAAATACCCCC In a file like this I want to do the following three search and replace. The... (4 Replies)
Discussion started by: Fahmida
4 Replies

9. Shell Programming and Scripting

Search a character and replace it with multiple lines

This is for AIX 6.1, I've a flat file and the format is like this DECLARE some statements; BEGIN some statements; END; I've to search BEGIN and replace it with the following 4 lines BEGIN For x in 1..1 LOOP BEGIN Similarly I've to search END and replace it with the... (7 Replies)
Discussion started by: Mukul Sharma
7 Replies

10. Shell Programming and Scripting

awk variable search and line count between variable-search pattern

Input: |Running the Rsync|Sun Oct 16 22:48:01 BST 2016 |End of the Rsync|Sun Oct 16 22:49:54 BST 2016 |Running the Rsync|Sun Oct 16 22:54:01 BST 2016 |End of the Rsync|Sun Oct 16 22:55:45 BST 2016 |Running the Rsync|Sun Oct 16 23:00:02 BST 2016 |End of the Rsync|Sun Oct 16 23:01:44 BST 2016... (4 Replies)
Discussion started by: busyboy
4 Replies
WWW::Search::Lycos(3pm) 				User Contributed Perl Documentation				   WWW::Search::Lycos(3pm)

NAME
WWW::Search::Lycos - class for searching www.lycos.com SYNOPSIS
use WWW::Search; my $oSearch = new WWW::Search('Lycos'); my $sQuery = WWW::Search::escape_query("+sushi restaurant +Columbus Ohio"); $oSearch->native_query($sQuery); while (my $oResult = $oSearch->next_result()) { print $oResult->url, " "; } DESCRIPTION
This class is a Lycos specialization of WWW::Search. It handles making and interpreting Lycos-site searches http://www.lycos.com. This class exports no public interface; all interaction should be done through WWW::Search objects. NOTES
Warning! As of 2004-01, lycos.com often returns an error page in place of the third page of results. So it is very difficult to get more than 20 hits for any query! www.lycos.com is sometimes slow to respond; but I have not had a problem with the default timeout. www.lycos.com does not give the date nor size of the pages at the resulting URLs; therefore change_date() and size() will never have a value. SEE ALSO
To make new back-ends, see WWW::Search. BUGS
Please tell the author if you find any! AUTHOR
As of 1998-12-07, "WWW::Search::Lycos" is maintained by Martin Thurn (mthurn@cpan.org). "WWW::Search::Lycos" was originally written by Martin Thurn, based on "WWW::Search::Yahoo" version 1.12 of 1998-10-22. LEGALESE
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::Lycos(3pm)
All times are GMT -4. The time now is 03:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy