Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    understanding code

    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. #2
    Join Date
    Feb 2012
    Location
    UTC -8 'tween the mtns, N of the Columbia R
    Posts
    202
    Thanks
    4
    Thanked 16 Times in 15 Posts
    Rep Power
    2
    Many of us won't help wih homework

 

 

Similar Threads

  1. Actually, Open Source Code Is Better: Report
    By News in forum Linux News
    Replies: 0
    Last Post: 02-23-2012, 05:04 PM
  2. delegation for the summer of code admins
    By News in forum Linux News
    Replies: 0
    Last Post: 02-12-2012, 07:14 AM
  3. Replies: 0
    Last Post: 02-03-2012, 12:03 AM
  4. Understanding Linux Directory Structure
    By Fred in forum Linux News
    Replies: 0
    Last Post: 11-28-2011, 09:02 AM
  5. Particle Code Platform May Go Open-Source
    By Fred in forum Linux News
    Replies: 0
    Last Post: 10-31-2011, 02:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,573
Threads: 3,920
Posts: 9,441
Top Poster: Fred (1,486)
Welcome to our newest member, Ronald de Souza

» Links



Powered by vBadvanced CMPS