4349 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 167 / 218
Newer►
  • Theorie-Niveau-1-plongee.pdf (Objet application/pdf)
    8 août 2012 à 22:26:32 UTC+2 - permalink - archive.org - http://blogplongee.fr/wp-content/uploads/2011/10/Theorie-Niveau-1-plongee.pdf
    plongee
  • IMDb - Movies, TV and Celebrities
    7 août 2012 à 13:02:03 UTC+2 - permalink - archive.org - http://www.imdb.com/
    allocine
  • iptables Howto — Fedora Unity Project
    6 août 2012 à 23:18:39 UTC+2 - permalink - archive.org - http://fedorasolved.org/Members/kanarip/iptables-howto
    firewall iptables linux
  • How to find which service is listening on a given port
    6 août 2012 à 23:18:11 UTC+2 - permalink - archive.org - http://go2linux.garron.me/which_service_or_program_is_listening_on_port
    netstat network
  • ubuntu_tweak - Documentation Ubuntu Francophone
    6 août 2012 à 22:51:19 UTC+2 - permalink - archive.org - http://doc.ubuntu-fr.org/ubuntu_tweak
    gnome
  • GNOME Classic in Ubuntu 12.04: It’s Like Nothing Ever Changed | OMG! Ubuntu!
    6 août 2012 à 22:46:09 UTC+2 - permalink - archive.org - http://www.omgubuntu.co.uk/2012/03/gnome-classic-in-ubuntu-12-04-its-like-nothing-ever-changed
    gnome ubuntu
  • Audio Streaming Using HTML5
    2 août 2012 à 12:28:33 UTC+2 - permalink - archive.org - http://www.bdwrekordings.com/articles/audio-streaming-html5.html
    html
  • Distribution_roles_projet.png (Image PNG, 616x594 pixels)
    1 août 2012 à 19:20:20 UTC+2 - permalink - archive.org - http://46.105.126.158/redmine/attachments/download/23/Distribution_roles_projet.png
    jukebox
  • Styles CSS : Les couleurs en CSS
    1 août 2012 à 13:58:21 UTC+2 - permalink - archive.org - http://stylescss.free.fr/couleurs.php
    css
  • blog.kyri0s.org - Deploying Apple's HTTP Live Streaming in a GNU Linux Environment
    1 août 2012 à 12:15:39 UTC+2 - permalink - archive.org - http://blog.kyri0s.org/post/271121944/deploying-apples-http-live-streaming-in-a-gnu-linux
    websocket
  • Kaazing Real-Time Web Communication
    1 août 2012 à 12:15:28 UTC+2 - permalink - archive.org - http://demo.kaazing.com/livefeed//
    websocket
  • Per-site custom CSS in Firefox | corey gilmore's blog
    1 août 2012 à 10:24:17 UTC+2 - permalink - archive.org - http://coreygilmore.com/blog/2008/10/23/per-site-custom-css-in-firefox/
    css
  • VMware KB: A virtual machine cannot be powered on and shows as unknown
    1 août 2012 à 10:24:10 UTC+2 - permalink - archive.org - http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=1008752
    vmware
  • VMware KB: Inaccessible virtual machines are named as Unknown VM
    1 août 2012 à 10:24:04 UTC+2 - permalink - archive.org - http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2172
    vmware
  • 4727441_700b.jpg (Image JPEG, 497x380 pixels)
    27 juillet 2012 à 13:16:53 UTC+2 - permalink - archive.org - http://d24w6bsrhbeh9d.cloudfront.net/photo/4727441_700b.jpg
    meme question
  • Remmina - The GTK+ Remote Desktop Client
    26 juillet 2012 à 14:13:49 UTC+2 - permalink - archive.org - http://remmina.sourceforge.net/
    linux ssh
  • PAC Manager | Free software downloads at SourceForge.net
    26 juillet 2012 à 14:13:38 UTC+2 - permalink - archive.org - http://sourceforge.net/projects/pacmanager/
    linux ssh
  • Get/Set - PHP Getters/Setters PHP, Java, Linux, JBOSS Seam | icurtain
    24 juillet 2012 à 21:29:35 UTC+2 - permalink - archive.org - http://www.icurtain.co.uk/getset.php
    generate php
  • Sed - An Introduction and Tutorial
    23 juillet 2012 à 15:28:07 UTC+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 ?

    23 juillet 2012 à 15:24:06 UTC+2 - permalink - archive.org - http://supersonique.net/administration/rechercher-et-remplacer-en-ligne-de-commande-bash-shell-sed/
    bash linux rechercher remplacer sed
Links per page: 20 50 100
◄Older
page 167 / 218
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation