Search Results

Search: Posts Made By: sanantonio7777
5,066
Posted By sanantonio7777
Im with OS X this is my code wget...
Im with OS X

this is my code
wget --server-response --spider -t 1 --timeout=1 "$fieldurl" 2>&1 | egrep -i "utf"


its ok for now :)
5,066
Posted By sanantonio7777
How to check string encoding?
I want to check if the string is WINDOWS-1251 or UTF-8

can you help me to find the string encoding???

or maybe to get URL Content-Type charset with wget?

this is my function on PHP
...
3,457
Posted By sanantonio7777
Thank you !!! :cool:
Thank you !!! :cool:
3,457
Posted By sanantonio7777
I want to split the text with 5 sentences in...
I want to split the text with 5 sentences in every paragraph

input
Text text text text text text text text text text text text text.Text text text text text text text text text text text text...
3,457
Posted By sanantonio7777
Split text into paragraphs
Hi all!

I want to make a code to split sentences into paragraphs maybe
4-5 sentences into one <p>text</p>
there are no new lines in the text string

any ideas with AWK, SSH?

Thank you!
1,813
Posted By sanantonio7777
Its ok now without the pipe thank you for the...
Its ok now without the pipe thank you for the help!!! :)
1,813
Posted By sanantonio7777
awk '/<iframe /{p=1} /<\/iframe/{p=0; next}!p' ...
awk '/<iframe /{p=1} /<\/iframe/{p=0; next}!p'
this remove <iframe></iframe> tags from $result_get or inputfile

next I count the words in every line
and I want to get all the lines with more...
1,813
Posted By sanantonio7777
ok this is the full source code echo...
ok
this is the full source code

echo "$result_get"|awk '/<iframe /{p=1} /<\/iframe>/{p=0; next}!p' | while read myline; do
then
newvar1=${myline}
fi
done
echo $newvar1

I just wanna...
1,813
Posted By sanantonio7777
ok thank you ! I want to get all lines from...
ok thank you !

I want to get all lines from the while loop to >> $newvar1

any ideas how to make it ?
1,813
Posted By sanantonio7777
cant get variable outside "while" in ssh
Hi all
I have a problem with this var :(
I dont know why I cant get it ?!!?!
Im trying with

newvar1=$(($var+1))
newvar1=$(($var + 1))
newvar1=`expr $var + 1`

expr: syntax error
expr:...
1,808
Posted By sanantonio7777
wow this is great command!!! Thank you!!!!!!
wow this is great command!!!
Thank you!!!!!!
1,808
Posted By sanantonio7777
48.being used as a therapy,” she says. resting...
48.being used as a therapy,” she says. resting thro
50.ugh although far-fetched, that in the future we co
48.uld think of cancer being used as a therapy,” sh
50.e says. treatment, Jayant believed...
1,808
Posted By sanantonio7777
AWK Substring without cutting off word
Can someone help me to make this code without cutting off words ni the string?

awk '{for(i=1;i<length;i+=100) print substr($0,i,100)}'


Thank you!
995
Posted By sanantonio7777
[solved] Question for using variables outside a while loop
I want to get newvar outside the while
any ideas?


while read myline; do
var=${myline}

newvar1=$(let "$var")

done

echo $newvar1


I found it its ok now Thank you!
7,089
Posted By sanantonio7777
Thank you! :)
Thank you! :)
7,089
Posted By sanantonio7777
every string is more than 50-100 000 chars can...
every string is more than 50-100 000 chars
can you tell me the fastest way to make it on equal parts of 500chars?
7,089
Posted By sanantonio7777
AWK splitting a string of equal parts of 500 chars
Hi ,

can someone help me how to make an AWK code for splitting a string of equal parts of 500 chars in while loop?

Thank you!
4,106
Posted By sanantonio7777
THANK YOU ! GREAT!
THANK YOU ! GREAT!
4,106
Posted By sanantonio7777
ahaha :) loop1_t: line 11: gawk: command...
ahaha :)

loop1_t: line 11: gawk: command not found


ok guys thank you on GNU its working fine but not on OS X :) :) :) ...
4,106
Posted By sanantonio7777
OS X 10.5 yeah it works on GNU but on OS...
OS X 10.5

yeah it works on GNU but on OS X?...

any ideas for the code?
4,106
Posted By sanantonio7777
the same awk: syntax error at source line 1 ...
the same

awk: syntax error at source line 1
context is
{print >>> gsub(/.*<div>(.*)<\/div>.*/,"\\1","g" <<<
awk: illegal statement at source line 1
awk: illegal statement at source line 1
4,106
Posted By sanantonio7777
this is my code echo "$result_get"|awk...
this is my code

echo "$result_get"|awk '{print gensub(/.*<div class="t0">(.*)<\/div>.*/,"\\1","g",$0);}'


awk: calling undefined function gensub
input record number 1, file
source line...
4,106
Posted By sanantonio7777
SED code to AWK
HI ,

can anyone tell me this code on AWK?

sed -n 's/.*<div class="t0">\(.*\)<\/div>.*/\1/p'

Thank you!!!
10,299
Posted By sanantonio7777
THANK YOU GUYS!!! THAT IS WHAT I WANT :) :) :) :)...
THANK YOU GUYS!!! THAT IS WHAT I WANT :) :) :) :)

I was trying with

echo $result | awk '{gsub(/<[^>]+>/, "", $0); print $0}'
10,299
Posted By sanantonio7777
AWK Variable instead inputfile
Hi ,

can I use var1 instead of inputfile (index.html) in AWK?



var1='<script>text1 asd asd asd</script>
text2 asd, asd
text3 asd asd asd asd
text4 asdasdasd asd asd'

awk '/<script...
Showing results 1 to 25 of 35

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