4129 links
740 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
7 results tagged sed x
  • sedsed

    ce type est fou.. génial mais fou

    March 25, 2016 05:48:36 PM GMT+01:00 * - permalink -
    QRCode
    - http://aurelio.net/projects/sedsed/
    sed
  • thumbnail
    text processing - How to strip multipe spaces to one using sed? - Unix & Linux Stack Exchange

    tr -s " " <3
    -s, --squeeze-repeats

    February 9, 2015 12:54:20 PM GMT+01:00 * - permalink -
    QRCode
    - http://unix.stackexchange.com/questions/19014/how-to-strip-multipe-spaces-to-one-using-sed
    sed tr
  • thumbnail
    Sed - Delete a line containing a specific string - Stack Overflow

    sed -i '/patterntomatch/d' filetoparse

    March 24, 2014 12:23:36 PM GMT+01:00 - permalink -
    QRCode
    - http://stackoverflow.com/questions/5410757/sed-delete-a-line-containing-a-specific-string
    sed cheatsheet
  • 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
    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
    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
Links per page: 20 50 100
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation