understanding code

C

corndogg

Guest
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
 



Members online


Top