Search Results

Search: Posts Made By: bobylapointe
2,512
Posted By Chubler_XL
How about this: awk -F'[- ]' -vW=dogs ' ...
How about this:

awk -F'[- ]' -vW=dogs '
BEGIN{IGNORECASE=1;S="[.?)]"}
$0 ~ W {
p=$1;
for(i=2;i<=NF;i++) {
if ($i ~ "^"W S"*$" && p !~ S) c[p]++;
p=tolower($i)} }
END { for(w in...
2,512
Posted By figaro
Are you saying that if "big dog" appears 3 times...
Are you saying that if "big dog" appears 3 times or more in a given piece of text, it should return the number of occurrences, whereby the user provides the search word, in your example "dog"?
You...
2,512
Posted By Scrutinizer
If you use "dog|dogs" as a field separator, then...
If you use "dog|dogs" as a field separator, then any resulting field would be adjacent to the word dog or dogs, if the number of fields is >1
2,512
Posted By bartus11
Can you post some sample data?
Can you post some sample data?
5,734
Posted By rangarasan
Awk
Hi,

Try this one,

awk 'NR==FNR{k=substr($0,1,7);a[k]=1;next;}{k=substr($0,1,7);if(!a[k]){print;}}' file2 file1 >file3

Cheers,
Ranga:-)
4,545
Posted By guruprasadpr
Hi $ sed 's/<\/b>/&\n/g;' file | sed -e...
Hi


$ sed 's/<\/b>/&\n/g;' file | sed -e '/<b>/!d' -e 's/.*<b>\([^>]*\)<\/b>/\1/'
bla ble
ble bla ble
ble ble ble bla ble


Guru
5,982
Posted By bakunin
For clarity i decompose your sed-script first: ...
For clarity i decompose your sed-script first:

cat $1 |\
sed -e :a -e 's/&lt;[^&gt;]*&gt;//g
/&lt;/N
//ba
s/</ /g
s/>/ /g
...
4,101
Posted By vbe
#!/bin/bash CPT=0 while read -r LINE #I'm...
#!/bin/bash
CPT=0
while read -r LINE #I'm reading from a big wordlist
do
CPT=$((CPT+1))
instructions using $LINE
echo "CPT="$CPT > ~/interrupted_at_line.log #will be in...
Showing results 1 to 8 of 8

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