lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> echo $PATH | awk 'BEGIN { FS=":"} {for (i=1; i<NF; i++) print $i}'
> 
> (sorry i don't know how to do it fast with Lua) )

for w in (os.getenv("PATH")..":"):gmatch(".-:") do print(w) end