understanding code

Discussion in 'General Linux' started by corndogg, Dec 11, 2012.

  1. corndogg

    corndogg New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello, I am very new to linux and was wondering if someone could help me with understanding a script

    function process() {
    sleep "$1"
    echo -n "$1 "
    }

    for data in $*; do
    process "$data" &
    done
    wait
    echo

    exit 0


    All im asking is what this script is doing and I will add what I need, I just need a jumpstart on understanding it it all :)

    thanks in advance
  2. pane-free

    pane-free Active Member

    Messages:
    332
    Likes Received:
    74
    Trophy Points:
    28
    Many of us won't help wih homework

Share This Page