Re: Détecter mots majuscules contenant tr

2016-06-25 Par sujet Etilem

bonjour,

Le mer. 22 juin 2016 20:47:27 CEST, andre_deb...@numericable.fr a écrit:

> On Wednesday 22 June 2016 16:50:46 Pierre Faivre wrote:
> > 's/([[:upper:]]*)tr([[:upper:]]+)|([[:upper:]]+)tr([[:upper:]]*)/\1TR\2/g'
> > c'est logique
> > il vérifie si il y a 0,1, ou plusieurs lettres MAJ devant le 'tr'
> > et au moins une lettre MAJ après 
> > ou
> > si il y a au moins une lettre MAJ avant le 'tr', et si il y a 0,1, 
> > ou plusieurs lettres MAJ après 
> > ce sed peut fonctionner sur des gros fichiers sans problème.  
> 
> Super, j'ai pu remettre tous les fichiers au carré !
> 
> Grand merci (et syntaxe sed enregistrée, ça peut reservir) .
> 
> Bonne soirée.
> 
> André
> 
> 

pour aller + loin dans la réflexion :

>$ cat test.txt 
trE Etr ÊtrE trAPÈZE LUStrE trAIN ULtrA FILtrE AUtrEMENT trAINTRAIN ULTRAFILtrE
tr trAINtrAIN ULtrAFILtrE trAVAil AutrEMENT

>$ perl -p 
>-e's/\btr([A-Z]+)\b/TR$1/g;s/\b([A-Z]+)tr\b/$1TR/g;s/\b([A-Z]+)tr([A-Z]+)\b/$1TR$2/g'
> test.txt 
TRE ETR ÊTRE TRAPÈZE LUSTRE TRAIN ULTRA FILTRE AUTREMENT TRAINTRAIN ULTRAFILTRE
tr trAINtrAIN ULtrAFILtrE trAVAil AutrEMENT

--
Etilem



Re: dépôts "stable" intéressants ou sympas

2016-06-25 Par sujet Pierre Crescenzo
Bonjour Bernard,

Super ! Merci.

Cordialement,

Pierre Crescenzo
  mailto:pie...@crescenzo.nom.fr
  http://www.crescenzo.nom.fr/

2016-06-24 11:21 GMT+02:00 Bernard Schoenacker 
:

> Le Fri, 24 Jun 2016 10:35:02 +0200,
> pierre.cresce...@unice.fr a écrit :
>
> > Bonjour,
> >
> > Auriez-vous des dépôts de niveau "stable" intéressants ou sympas
> > (critères à interpréter à votre convenance :-)) ? En cherchant un
> > moment sur le web, et notamment sur les site et wiki Debian, j'ai
> > sélectionné ça : deb http://ftp.fr.debian.org/debian/ jessie main
> > contrib non-free deb http://ftp.fr.debian.org/debian/ jessie-updates
> > main contrib non-free deb http://ftp.fr.debian.org/debian/
> > jessie-proposed-updates main contrib non-free
> > deb http://ftp.fr.debian.org/debian/ jessie-backports main contrib
> > non-free deb http://security.debian.org/ jessie/updates main contrib
> > non-free deb http://www.deb-multimedia.org/ jessie main non-free
> > deb http://dl.google.com/linux/chrome/deb/ stable main
> > deb http://ppa.launchpad.net/ne0sight/chrome-gnome-shell/ubuntu
> > trusty main
> >
> > Mais si vous en avez d'autres que je puisse un peu fouiller, je suis
> > partant !
> >
> > Merci.
> >
> > Cordialement,
> >
> > Pierre Crescenzoenseignant-chercheur en Informatique
> >   Université Nice Sophia Antipolis (UNS) et CNRS  http://www.unice.fr/
> >   http://www.i3s.unice.fr/  http://sparks.i3s.unice.fr/
> > http://www.cnrs.fr/ Membre CoNRS  http://www.cnrs.fr/comitenational/
> >   Vice-Président PromoSciences  http://www.promosciences.org/
> >   Membre CAc Université Côte d'Azur (UCA)
> > http://www.univ-cotedazur.fr/ Membre Conseil Documentaire UNS
> > http://bibliotheque.unice.fr/ Membre Conseil de Gestion Faculté des
> > Sciences  http://sciences.unice.fr/ Membre Comité Scientifique
> > Bachelor SKEMA  http://www.skema-bs.fr/
> > mailto:pierre.cresce...@unice.fr  http://www.crescenzo.nom.fr/
>
> bonjour,
>
> il existe un générateur de sources.list intéressant :
>
> https://debgen.simplylinux.ch/
>
>
> slt
> bernard
>
>