4351 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 168 / 218
Newer►
  • Sed - An Introduction and Tutorial
    July 23, 2012 at 3:28:07 PM GMT+2 - permalink - archive.org - http://www.grymoire.com/Unix/Sed.html
    sed
  • thumbnail
    Rechercher et remplacer en ligne de commande bash shell en utilisant sed | Stratégies, solutions, design et développement Internet 2.0

    bash# sed -i ’s/[texte_recherché]/[texte_de_remplacement]/’ monfichier.txt

    Pour l’exercice nous allons dire que monfichier.txt comporte une liste d’anciennes adresses email @wanadoo.fr et que nous désirons les mettre à jour en @orange.fr .

    bash# cat monfichier.txt
    toto@wanadoo.fr
    toto@wanadoo.fr
    toto@wanadoo.fr
    etc.

    Donc dans ce cas, cela nous donnera :

    bash# sed -i ’s/wanadoo/orange/g’ monfichier.txt

    Voilà en détail l’explication :

    On passe à la commande sed le paramètre “-i” pour l’édition du fichier monfichier.txt
    Le paramètre “-s” (substituer) qui définit l’action de rechercher / remplacer,
    l’expression régulière (REGEX),
    puis le ‘g’ (action global) à la suite pour la modification de toutes les instances de la chaîne de caractères remplacer dans le fichier.
    Dans le cas où on voudrait ne remplacer que la première qui aurait été trouvée, il faudra modifier comme suit : ‘s/texte1/texte2/’

    Bon, cela fonctionne sur un fichier, maintenant dans le cas de plusieurs fichiers, voici la commande ‘find’ qui va compléter l’astuce.

    bash# find . -maxdepth 1 -name “*.txt” -type f -exec sed -i ’s/wanadoo/orange/g’ {} \

    En détail cela nous donne:

    Nous utilisons la commande ‘find’ pour récupérer la liste des fichiers ‘.txt’ à traiter,
    dans le dossier courant ‘.’ et de ne pas aller plus bas ‘-maxdepth 1′,
    puis donc de lister les fichiers dont le nom finit par “*.txt” :  ‘-name “*.txt” -type f’.
    on utilise alors l’option ‘-exec’ pour dire à ‘find’ d’utiliser la commande qui suit sur les fichiers trouvés.

    Et voilà, simple non ?

    July 23, 2012 at 3:24:06 PM GMT+2 - permalink - archive.org - http://supersonique.net/administration/rechercher-et-remplacer-en-ligne-de-commande-bash-shell-sed/
    bash linux rechercher remplacer sed
  • Every day JSON work: comparing JSON documents for equality ("are these JSONS same?")
    July 19, 2012 at 5:13:35 PM GMT+2 - permalink - archive.org - http://www.cowtowncoder.com/blog/archives/2010/07/entry_406.html
    java json
  • InterfaceLIFT Wallpaper: Mac Is Greater
    July 19, 2012 at 10:50:15 AM GMT+2 - permalink - archive.org - http://interfacelift.com/wallpaper/details/1924/mac_is_greater.html
    mac pc wallpaper
  • windows-seven.org: Cacher une partition avec Windows 7
    July 18, 2012 at 7:42:52 PM GMT+2 - permalink - archive.org - http://www.windows-seven.org/2010/05/cacher-une-partition-avec-windows-7.html
    windows
  • Linux in My Box: Logging Shell Commands in Linux

    Comment logger toutes les commandes tappées par tous les utilisateurs sur linux

    July 18, 2012 at 4:34:44 PM GMT+2 - permalink - archive.org - http://blog.kxr.me/2012/01/logging-shell-commands-in-linux.html
    linux log
  • Rotate PDF permanently, online, for free
    July 18, 2012 at 10:24:04 AM GMT+2 - permalink - archive.org - http://www.rotatepdf.net/
    online pdf rotate tools
  • thumbnail
    Windows : Créer une clé USB d'installation
    July 17, 2012 at 7:04:32 PM GMT+2 - permalink - archive.org - http://www.commentcamarche.net/faq/21013-windows-creer-une-cle-usb-d-installation
    boot iso windows
  • Java current Timestamp example - how to create a "current timestamp" | Java timestamp now | devdaily.com

    Comment créer un timestamp de l'heure actuelle en Java

    July 17, 2012 at 3:14:36 PM GMT+2 - permalink - archive.org - http://www.devdaily.com/java/java-timestamp-example-current-time-now
    java timestamp
  • http://www.siteduzero.com/tutoriel-3-34590-procedure-stockee.html
    July 17, 2012 at 11:51:08 AM GMT+2 - permalink - archive.org - http://www.siteduzero.com/tutoriel-3-34590-procedure-stockee.html
    bdd databse db mysql ps
  • PHP: Requêtes préparées et procédures stockées - Manual
    July 17, 2012 at 11:50:35 AM GMT+2 - permalink - archive.org - http://php.net/manual/fr/pdo.prepared-statements.php
    bdd database db mysql ps
  • Bateau école Lyon - Code et permis bateau en Rhône Alpes
    July 16, 2012 at 5:35:26 PM GMT+2 - permalink - archive.org - http://www.littoral-nautic.fr/
    bateau permis
  • Contacter votre Bateau Ecole en Isère. | Permis Bateau Isère
    July 15, 2012 at 9:38:41 PM GMT+2 - permalink - archive.org - http://www.permis-fluvial.fr/contacter-votre-bateau-ecole-en-isere
    bateau permis
  • Index of /UTBM_LO22/P08

    Site avec bon TD linux bash

    July 14, 2012 at 6:51:00 PM GMT+2 - permalink - archive.org - http://eric.bachard.free.fr/UTBM_LO22/P08/
    bash linux shell
  • Utiliser un SSD dans son Media Center

    Reglage à faire avant d'installer windows 7 sur un SSD

    July 14, 2012 at 11:46:45 AM GMT+2 - permalink - archive.org - http://www.media-center7.fr/divers-a-systeme/163-utiliser-un-ssd-dans-son-media-center.html#AvantInstall
    ssd
  • thumbnail
    LDLC Aurore BB4-I3-4-H3 (BB4-I3-4-H3) : achat / vente PC portable sur ldlc.com
    July 14, 2012 at 11:32:56 AM GMT+2 - permalink - archive.org - http://www.ldlc.com/fiche/PB00130752.html
    hardware portable
  • .bashrc not being executed, why?

    Pourquoi le bashrc ne s'execute pas

    July 13, 2012 at 11:39:13 AM GMT+2 - permalink - archive.org - http://www.linuxquestions.org/questions/linux-newbie-8/bashrc-not-being-executed-why-127676/
    bashrc linux shell
  • Bashrc collaboratif - Linux Attitude
    July 13, 2012 at 11:33:41 AM GMT+2 - permalink - archive.org - http://linux-attitude.fr/post/bashrc-collaboratif
    bashrc shell
  • Comment savoir si une propagation DNS est en cours | Korben

    Tout est dans le titre, ce site requete depuis plusieurs endroits dans le monde

    July 12, 2012 at 11:55:17 AM GMT+2 - permalink - archive.org - http://korben.info/comment-savoir-si-une-propagation-dns-est-en-cours.html
    dns
  • My vi/vim cheatsheet
    July 11, 2012 at 2:23:58 PM GMT+2 - permalink - archive.org - http://www.worldtimzone.com/res/vi.html
    vim
Links per page: 20 50 100
◄Older
page 168 / 218
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation