4140 links
741 private links
  • Doo's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
  • ► Jouer les vidéos
Links per page: 20 50 100
◄Older
page 165 / 170
Newer►
  • thumbnail
    bash - Why does "$i | sed" not work? - Unix & Linux Stack Exchange

    You can substitute the value of $i in to see the exact command you're trying to run:

    app4/ | sed -e "s/^.*(.)$/\1/"

    This doesn't work because app4/ isn't a command. You're trying to pipe app4/ into sed, so you need to use something that outputs app4/:

    echo app4/ | sed -e "s/^.*(.)$/\1/"

    This works, but you don't really need to use sed for this; bash has quite a few string manipulation tools. For example, ${i#} will give you the length of $i, and ${i:j} will give you a substring starting at j, so ${i:$((${i#}-1))} will give you the last character.

    The easiest way to do what you're trying is probably with ${i%/}. This will return $i, but will strip off a / from the end if there is one:

    $ i="app4"; echo ${i%/}
    app4
    $ i="app4/"; echo ${i%/}
    app4

    Thus:

    if [ "${i%/}" = "$i" ]
    then
    echo "file"
    else
    echo "folder"
    fi

    However, if all you really want is to know if $i is a valid directory, you can just use:

    if [ -d "$i" ]

    November 2, 2013 09:58:05 PM GMT+01:00 - permalink -
    QRCode
    - http://unix.stackexchange.com/questions/27334/why-does-i-sed-not-work#27336
    sed hack tool linux bash
  • thumbnail
    WebRTC Copy « Korben Korben

    node.js, encore :-) ( de la merde)

    November 2, 2013 10:03:47 AM GMT+01:00 - permalink -
    QRCode
    - http://korben.info/exemple-webrtc.html
    file manager linux
  • thumbnail
    reader

    installé, testé, invalidé :D

    November 2, 2013 09:48:00 AM GMT+01:00 - permalink -
    QRCode
    - http://reader.nunux.org/
    reader tool linux
  • thumbnail
    JOUONS – Des ancêtres du GIF… en GIF | Big Browser
    November 2, 2013 09:47:42 AM GMT+01:00 - permalink -
    QRCode
    - http://bigbrowser.blog.lemonde.fr/2013/10/31/jouons-des-ancetres-du-gif-en-gif/
    gif histoire
  • thumbnail
    SCRIPTS D'UNE LIGNE UTILES POUR SED (ÉDITEUR DÉFILANT UNIX)

    la version fr :-)

    November 2, 2013 09:33:30 AM GMT+01:00 - permalink -
    QRCode
    - http://sed.sourceforge.net/sed1line_fr.html
    sed cheat sheet tool linux
  • thumbnail
    sed cheat sheet _ UK
    November 2, 2013 09:31:36 AM GMT+01:00 - permalink -
    QRCode
    - http://sed.sourceforge.net/sed1line.txt
    sed cheat sheet tool linux
  • thumbnail
    awk cheat sheet
    November 2, 2013 09:31:11 AM GMT+01:00 - permalink -
    QRCode
    - http://www.pement.org/awk/awk1line.txt
    awk linux tool fifiche
  • thumbnail
    Rajiv's blog - Scaling lessons learned at Dropbox, part 1

    approche géniale de la scalabilité

    November 2, 2013 09:30:23 AM GMT+01:00 - permalink -
    QRCode
    - http://eranki.tumblr.com/post/27076431887/scaling-lessons-learned-at-dropbox-part-1
    scalability awk sed linux tool tool_list
  • thumbnail
    Powertop – Réduisez la consommation électrique de votre PC portable | La vache libre
    October 28, 2013 11:45:11 AM GMT+01:00 - permalink -
    QRCode
    - http://la-vache-libre.org/powertop-reduisez-la-consommation-electrique-de-votre-pc-portable/
    tool linux
  • thumbnail
    La E-Cigarette : comprendre le succès du vapotage hackable et DiY : Reflets
    October 28, 2013 09:38:58 AM GMT+01:00 - permalink -
    QRCode
    - http://reflets.info/la-e-cigarette-comprendre-le-succes-du-vapotage-hackable-et-diy/
    e-cigarette eclope cigarette-electronique
  • thumbnail
    Infinity Conky for Ubuntu/Linux Mint/Debian/Fedora/Other Distributions (New Update) - Noobs on Ubuntu, Mint and Debian, HD Wallpapers, Tutorials

    rha j'ai failli le perdre celui là :D
    so much gorgeos doge

    October 27, 2013 01:18:10 PM GMT+01:00 - permalink -
    QRCode
    - http://www.noobslab.com/2012/06/install-infinity-conky-in-ubuntulinux.html
    conky linux tool
  • thumbnail
    Une opération simple pour améliorer la sécurité de Firefox - Liens en vrac de sebsauvage

    Voici comment configurer Firefox pour qu'il n'active ces plugins que sur demande explicite de votre part:

    • dans la barre d'adresse, tapez about:config
    • dans la configuration, passez le paramètre "plugins.click_to_play" à "true".
      EDIT: Zut. Depuis Firefox 24, l'option plugins.click_to_play ne sert plus à rien. Il faut aller dans le menu Outils > Modules complémentaires > Plugins > et choisir "Demander pour activer" pour chaque plugin.
    October 26, 2013 08:13:09 PM GMT+02:00 - permalink -
    QRCode
    - http://sebsauvage.net/links/?T-I5Og
    security firefox tips
  • thumbnail
    Apprendre mieux | Un blog de Bernard Lamailloux

    trouvé sur sebsauvage toussa :-) a checker fissa

    October 26, 2013 11:48:00 AM GMT+02:00 - permalink -
    QRCode
    - http://lamailloux.wordpress.com/
    learn ril
  • thumbnail
    Conférences
    October 25, 2013 09:52:06 PM GMT+02:00 - permalink -
    QRCode
    - http://confs.fr/
    conférences confs linux
  • thumbnail
    Apache Web Server Hardening & Security Guide

    one more link by crazytux

    October 24, 2013 09:04:00 AM GMT+02:00 - permalink -
    QRCode
    - http://www.chandank.com/webservers/apache/apache-web-server-hardening-security
    ril tdl tool apache
  • thumbnail
    "wilfried caruel : Xpad le logiciel open source de la semaine" http://feedly.com/k/17JsPSE

    post it

    October 24, 2013 12:11:26 AM GMT+02:00 - permalink -
    QRCode
    - http://www.wilfriedcaruel.me/2013/10/xpad-le-logiciel-open-source-de-la.html
    tool linux
  • thumbnail
    Digital Attack Map
    October 23, 2013 11:47:16 AM GMT+02:00 - permalink -
    QRCode
    - http://www.digitalattackmap.com/#anim=1&color=0&country=FR&time=15991&view=map
    carte monitoring ddos secu
  • thumbnail
    Rebalancing Ganeti ClustersLance Albertson | Lance Albertson
    October 23, 2013 11:20:46 AM GMT+02:00 - permalink -
    QRCode
    - http://www.lancealbertson.com/2011/05/rebalancing-ganeti-clusters/
    ganeti doc tool ril
  • thumbnail
    "Twitter Experiments With a Private Feed" http://feedly.com/k/1a4sU5r

    A tester

    October 22, 2013 10:14:37 PM GMT+02:00 - permalink -
    QRCode
    - http://"Twitter Experiments With a Private Feed" http://feedly.com/k/1a4sU5r
    twitter
  • thumbnail
    BashGuide/Arrays - Greg's Wiki

    Me suis arrêté la

    October 22, 2013 10:11:32 PM GMT+02:00 - permalink -
    QRCode
    - http://mywiki.wooledge.org/BashGuide/Arrays
    ril
Links per page: 20 50 100
◄Older
page 165 / 170
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation