05-17-2019
In addition to what anbu23 has already said, note that if the file name you are processing contains any lowercase letters, converting those lowercase letters to uppercase would cause awk to fail with an error noting that no file with the converted filename exists.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
can I tell awk to be case insensitive for one operation without setting the ignorecase value ?
thanks,
Steffen (7 Replies)
Discussion started by: forever_49ers
7 Replies
2. Shell Programming and Scripting
Hi All,
How we can perform case-insensitive search with AWK.:rolleyes:
regards,
Sam (11 Replies)
Discussion started by: sam25
11 Replies
3. Shell Programming and Scripting
Hey , i am trying to do a search for the certain books , and im trying to make it case insensitive. what i have come up with so far is this :
Database.txt
RETARDED MONKEY:RACHEAL ABRAHAML:30:30:20
GOLD:FATIN:23.20:12:3
STUPID:JERLYN:20:40:3
echo -n "Title: "
read Title
echo -n... (3 Replies)
Discussion started by: gregarion
3 Replies
4. UNIX for Dummies Questions & Answers
Hello,
How do I set case insensitive search mode while the file is open with more command ?
(I know -i option which could be used before opening)
thanks
Vilius (2 Replies)
Discussion started by: vilius
2 Replies
5. AIX
Hello,
Linux man command search is case insensitive by default, but not AIX man.
How do I serch case insensitive while using AIX manual pages ?
thanks
Vilius (7 Replies)
Discussion started by: vilius
7 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have a file named "test_file" that has the below content. It has words in upper/lower cases
PRODOPS
prodOPS
ProdOps
PRODops
escalate
Shell
My requirement is to replace all the "prodops" (what ever case it may be) with "productionoperations".
I tried using the "i" option with... (7 Replies)
Discussion started by: sbhuvana20
7 Replies
7. UNIX for Dummies Questions & Answers
I am using HP-Unix B.11.31.
Question: How to do the case insensitive search using FIND?
Example: I would like list the files with extension of *.SQL & *.sql.
When I try with command find . -type f -name *.sql, it does not lists file with *.SQL. (5 Replies)
Discussion started by: Siva SQL
5 Replies
8. Shell Programming and Scripting
here is a statement
awk '/CREATE PROCEDURE/,/elimiter/' "$file1" > onlyproc1.sql
which mean cut from create procedure to Delimiter or delimiter and paste it in onlyproc1.sql... my query is how to make this case insensitive.. that is i want the above code to work whther it is Delimiter or... (26 Replies)
Discussion started by: vivek d r
26 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
What is the command to search a file for a case-insensitive match
1.grep -nc text filename
2.grep -i text filename
3.grep -i filename text
4.grep -nc filename text
5.grep -c text filename
Thanks for your help (1 Reply)
Discussion started by: bobby1015
1 Replies
10. Shell Programming and Scripting
I am trying to find case insensitive file names and then replace that particular file with other name.
if
then
ls | grep -i "update" | xargs -I {} mv {} LineItems.csv
echo "File moved from *update*"
elif
then
ls | grep -i "priority" | xargs -I {} mv {} ... (1 Reply)
Discussion started by: ATWC
1 Replies
LEARN ABOUT DEBIAN
wiki::toolkit::search::base
Wiki::Toolkit::Search::Base(3pm) User Contributed Perl Documentation Wiki::Toolkit::Search::Base(3pm)
NAME
Wiki::Toolkit::Search::Base - Base class for Wiki::Toolkit search plugins.
SYNOPSIS
my $search = Wiki::Toolkit::Search::XXX->new( @args );
my %wombat_nodes = $search->search_nodes("wombat");
This class details the methods that need to be overridden by search plugins.
METHODS
"new"
my $search = Wiki::Toolkit::Search::XXX->new( @args );
Creates a new searcher. By default the arguments are just passed to "_init", so you may wish to override that instead.
"search_nodes"
# Find all the nodes which contain the word 'expert'.
my %results = $search->search_nodes('expert');
Returns a (possibly empty) hash whose keys are the node names and whose values are the scores in some kind of relevance-scoring system I
haven't entirely come up with yet. For OR searches, this could initially be the number of terms that appear in the node, perhaps.
Defaults to AND searches (if $and_or is not supplied, or is anything other than "OR" or "or").
Searches are case-insensitive.
"analyze"
@terms = $self->analyze($string)
Splits a string into a set of terms for indexing and searching. Typically this is done case-insensitively, splitting at word boundaries,
and extracting words that contain at least 1 word characters.
"fuzzy_title_match"
$wiki->write_node( "King's Cross St Pancras", "A station." );
my %matches = $search->fuzzy_title_match( "Kings Cross St. Pancras" );
Returns a (possibly empty) hash whose keys are the node names and whose values are the scores in some kind of relevance-scoring system I
haven't entirely come up with yet.
Note that even if an exact match is found, any other similar enough matches will also be returned. However, any exact match is guaranteed
to have the highest relevance score.
The matching is done against "canonicalised" forms of the search string and the node titles in the database: stripping vowels, repeated
letters and non-word characters, and lowercasing.
"index_node"
$search->index_node($node, $content);
Indexes or reindexes the given node in the search engine indexes. You must supply both the node name and its content.
canonicalise_title
$fuzzy = $self->canonicalise_title( $ node);
Returns the node title as suitable for fuzzy searching: with punctuation and spaces removes, vowels removed, and double letters squashed.
"delete_node"
$search->delete_node($node);
Removes the given node from the search indexes. NOTE: It's up to you to make sure the node is removed from the backend store. Croaks on
error.
"supports_phrase_searches"
if ( $search->supports_phrase_searches ) {
return $search->search_nodes( '"fox in socks"' );
}
Returns true if this search backend supports phrase searching, and false otherwise.
"supports_fuzzy_searches"
if ( $search->supports_fuzzy_searches ) {
return $search->fuzzy_title_match("Kings Cross St Pancreas");
}
Returns true if this search backend supports fuzzy title matching, and false otherwise.
SEE ALSO
Wiki::Toolkit
perl v5.14.2 2012-05-28 Wiki::Toolkit::Search::Base(3pm)