Tartarus

Would you like to react to this message? Create an account in a few clicks or log in to continue.

The Underworld Of Lightly (& Logically) Moderated Discussion & Debate


    random bash

    master5o1
    master5o1
    Cyclopes
    Cyclopes


    random bash Empty random bash

    Post  master5o1 Sun Jun 21, 2009 12:56 pm

    Someone describe what the bash script in my sig does Wink

    Code:
    #INPUTDATA=`echo $(ls | sed -e 's/ /__SPACE__/g')`; for thing in $INPUTDATA; do MOVEDATA1=$(echo `echo $thing | sed -e 's/__SPACE__/\\ /g'`); MOVEDATA2=$(echo $thing | sed -e 's/__SPACE__-__SPACE__/-/g' -e 's/__SPACE__/\ /g'); mv "$MOVEDATA1" "$MOVEDATA2"; done

      Current date/time is Tue May 07, 2024 5:27 am