String Array = Scan ( String AS String , Pattern AS String )
Matches a string against a pattern, and returns an array of all strings associated with a '*' generic character.
DIM sResult AS String DIM sLine AS String DIM sElt AS String EXEC "df" TO sResult FOR EACH sLine IN Split(sResult, "\n") FOR EACH sElt IN Scan(sLine, "* * * * *") PRINT sElt; "|"; NEXT PRINT NEXT <hr>Filesystem|Size|Used|Avail|Use%|Mounted on| /dev/hda6|8.0G|3.8G|4.3G|47%|/| /dev/hda5|31M|3.3M|26M|12%|/boot| /dev/hda8|33G|31G|1.2G|97%|/home| /dev/hda1|8.1G|4.1G|4.0G|51%|/mnt/win_c| /dev/hda9|29G|27G|1.1G|97%|/mnt/win_d| none|379M|52K|379M|1%|/tmp|