Search Results

Search: Posts Made By: johnjs
6,526
Posted By DGPickett
Many tools have case insensitivity and forward...
Many tools have case insensitivity and forward reference in their regex. Regular expressions have many flavors and extensions. For instance, this sed finds such:sed -in '
:loop
$d
/\\$/{
...
6,526
Posted By Don Cragun
This problem seems easier to me in awk than in...
This problem seems easier to me in awk than in sed:
awk -F" *:" '$1=="" {next}
{ if(list[toupper($1)]++)
printf("%s on line %d has been seen %d times\n",
...
10,941
Posted By Scrutinizer
Hi, I get: $ variable=first; awk...
Hi, I get:

$ variable=first; awk 'tolower($0)~tolower(s),/end:/' s="$variable" infile
FIRST:\
one
two
three
end:
$ variable=SECOND; awk 'tolower($0)~tolower(s),/end:/' s="$variable" infile...
10,941
Posted By ygemici
what is your output? @Scrutinizer's code is...
what is your output?

@Scrutinizer's code is correct to me..
because of this code converts to lower (or upper ) for any input (does not matter if it is lower case or upper)
and if it matches then...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy