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
    2012年7月23日 GMT+2 下午3:28:07 - 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 ?

    2012年7月23日 GMT+2 下午3:24:06 - 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?")
    2012年7月19日 GMT+2 下午5:13:35 - permalink - archive.org - http://www.cowtowncoder.com/blog/archives/2010/07/entry_406.html
    java json
  • InterfaceLIFT Wallpaper: Mac Is Greater
    2012年7月19日 GMT+2 上午10:50:15 - 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
    2012年7月18日 GMT+2 下午7:42:52 - 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

    2012年7月18日 GMT+2 下午4:34:44 - permalink - archive.org - http://blog.kxr.me/2012/01/logging-shell-commands-in-linux.html
    linux log
  • Rotate PDF permanently, online, for free
    2012年7月18日 GMT+2 上午10:24:04 - permalink - archive.org - http://www.rotatepdf.net/
    online pdf rotate tools
  • thumbnail
    Windows : Créer une clé USB d'installation
    2012年7月17日 GMT+2 下午7:04:32 - 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

    2012年7月17日 GMT+2 下午3:14:36 - 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
    2012年7月17日 GMT+2 上午11:51:08 - 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
    2012年7月17日 GMT+2 上午11:50:35 - 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
    2012年7月16日 GMT+2 下午5:35:26 - permalink - archive.org - http://www.littoral-nautic.fr/
    bateau permis
  • Contacter votre Bateau Ecole en Isère. | Permis Bateau Isère
    2012年7月15日 GMT+2 下午9:38:41 - 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

    2012年7月14日 GMT+2 下午6:51:00 - 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

    2012年7月14日 GMT+2 上午11:46:45 - 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
    2012年7月14日 GMT+2 上午11:32:56 - permalink - archive.org - http://www.ldlc.com/fiche/PB00130752.html
    hardware portable
  • .bashrc not being executed, why?

    Pourquoi le bashrc ne s'execute pas

    2012年7月13日 GMT+2 上午11:39:13 - permalink - archive.org - http://www.linuxquestions.org/questions/linux-newbie-8/bashrc-not-being-executed-why-127676/
    bashrc linux shell
  • Bashrc collaboratif - Linux Attitude
    2012年7月13日 GMT+2 上午11:33:41 - 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

    2012年7月12日 GMT+2 上午11:55:17 - permalink - archive.org - http://korben.info/comment-savoir-si-une-propagation-dns-est-en-cours.html
    dns
  • My vi/vim cheatsheet
    2012年7月11日 GMT+2 下午2:23:58 - 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