Search Results

Search: Posts Made By: louisJ
2,504
Posted By louisJ
Thanks A lot
Thanks A lot
2,504
Posted By louisJ
Gawk gensub, match capital words and lowercase words
Hi

I have strings like these :
Vengeance mitt
Men Vengeance gloves
Women Quatro Windstopper Etip gloves
Quatro Windstopper Etip gloves
Girls Thermobite hooded jacket
Thermobite Triclimate...
1,238
Posted By louisJ
arggg no, it doesn't work... The rk min ...
arggg no, it doesn't work...
The
rk min
mrk mtype=is removed though it shouldn't...
any idea why?

and also, I would need to apply the gensub also on strings between (a number)"> and </g
That...
1,238
Posted By louisJ
thanks elixir_sinari...
thanks elixir_sinari (https://www.unix.com/members/302109747.html)
here is an example:
from this:
<trans-unit id="pt1"><mrk mtype="seg" mid="1">Youu® Men’s Sight Sleeved Crew Neck is a baselayer...
1,238
Posted By louisJ
awk search and replace in a targeted field instead of $0
Hi

I would like to apply this gawk command:
gawk '{$0=gensub(/\y[a-z_\-]+\y[ |\,\;\:\.]/,"","g"); print}' file
not to the whole $0 but just to the part of $0 that is between:
(a number)"> and...
13,580
Posted By louisJ
I get 1000000 for both vaiables
I get 1000000 for both vaiables
2,858
Posted By louisJ
finally I chose sort -k1,1rn -k2r thanks
finally I chose

sort -k1,1rn -k2r

thanks
2,858
Posted By louisJ
combining r and n options works fine. thanks!
combining r and n options works fine. thanks!
13,580
Posted By louisJ
anyone?
anyone?
2,858
Posted By louisJ
Sort numeric order
Hi
I am using this
cat substitutionFeats.txt | gawk '{$0=gensub(/\t/,"blabla",1);print}' | gawk '{print length, $0}' | sort -n | sort -r
and the "sort -n" command doesn't work as expected: it...
7,248
Posted By louisJ
thank you I used this: sed "s/<[^>]*>//g"...
thank you I used this:
sed "s/<[^>]*>//g" file.html
to clean the file from the html codes.

Now I need to clean it from the templates code that are enclosed like that:
{{...}}

I tried this ...
7,248
Posted By louisJ
Word count in html files
Hi

does somebody know how to do a word count in a .html file?
Just the text words, without all the html code.

Thanks
2,476
Posted By louisJ
Thanks neutronscott, in order to be more...
Thanks neutronscott,
in order to be more clear,
From this text:

Combining greatness with lightweight origination, The Thing Men’s Are To Get offers way-compatible alpine comfort. Originated...
2,476
Posted By louisJ
Thanks everybody for these answers. I am using...
Thanks everybody for these answers. I am using your solution neutronscott (https://www.unix.com/members/302097825.html), because it is the closest to my orginal command.
But anchal_khare...
1,639
Posted By louisJ
Match groups of capital words using gawk
Hi

I'd like to extract from a text file, using gawk, the groups of words beginning with a capital letter, that are not at the begining of a sentence (i.e. Not after a full stop and a pace ". "),...
2,476
Posted By louisJ
Get group of consecutive uppercase words using gawk
Hi

I'd like to extract, from a text file, the strings starting with "The Thing" and only composed of words with a capital first letter and apostrophes, like for example:
"The Thing I Only" ...
13,580
Posted By louisJ
Ok small files but how many lines (how many...
Ok small files but how many lines (how many commands)?
13,580
Posted By louisJ
Increase bash history size
Hi

I am trying to increase the number of commands recorded in my .bash_history file.
I followed what is indicated and have add to my .bashrc
export HISTCONTROL=ignoreboth
export...
2,625
Posted By louisJ
Indeed i should have mentionner it earlier ,...
Indeed i should have mentionner it earlier , sorry :-P ...
2,625
Posted By louisJ
srutinizer your awk line doesn't work with...
srutinizer your awk line doesn't work with d'Alpisme

---------- Post updated at 08:56 AM ---------- Previous update was at 08:53 AM ----------

it would be useful to the awk word match \w to...
2,625
Posted By louisJ
indeed, this must be it. tip78 ...the...
indeed, this must be it.

tip78 ...the problem is with accentuated words lire Détente....your pearl gives DéTente....
2,625
Posted By louisJ
Thanks but the solution from this thread #for...
Thanks but the solution from this thread #for ( i=1; i <= NF; i++) {
# sub(".", substr(toupper($i),1,1),$i)
# }
print
doesn't capitalize this for example: I need "...
2,625
Posted By louisJ
[SOLVED] What is wrong with tiny (g)awk line ??
Hi
I wish to capitalize the first letter or every word in a text file with:
gawk '{$0=gensub(/(\w)(\w*)/,toupper("\\1")"\\2","g");}' file.txtBut it doesn't work...:
target:
bla test Test TEST...
4,442
Posted By louisJ
Thanks it works now!!
Thanks it works now!!
4,442
Posted By louisJ
I don't get it... how to write this as a awk...
I don't get it...

how to write this as a awk script (and not a one liner), the following should be working, but it displays results from the first file (gauche.txt) instead of the right file...
Showing results 1 to 25 of 36

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