|
>Any idea to parse such strings, being able to iterate b/w each disks >whatever the string contains 1 or more disks ? smaller but not necessarily faster: for _, mnt,tp,temp,unit in s:gmatch("((/dev/[^|]+)|([^|]+)|([^|]+)|([^|]+)[|]?[^/]+)") do print(mnt, tp, temp, unit) end BUT ENOUGH HOMEWORK :) cheers, -- p