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
 


MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Staff online

Members online


Latest posts

Top