Re: Help with arrarys / lists

2001-06-01 Thread Michael Fowler
On Fri, Jun 01, 2001 at 01:16:45PM -0400, [EMAIL PROTECTED] wrote: > Please help. > > foreach $_ (`df`){ > ($fs, $kb, $used, $avail, $cap, $mount) = split (" ",/(\S+\\/n)); > print $fs if /dsk/; > } This doesn't answer your asked question, but you may want to consider using one of the

Re: Help with arrarys / lists

2001-06-01 Thread Jeff Pinyan
On Jun 1, [EMAIL PROTECTED] said: >I want to take the output of a df -k command and take the first column >and put it into a nice array or list that I can then later put each >seperate line into a command. I have tried a few different versions and >can't figure it out. I'm new to this and I'm su

Help with arrarys / lists

2001-06-01 Thread anna . roberts
I want to take the output of a df -k command and take the first column and put it into a nice array or list that I can then later put each seperate line into a command. I have tried a few different versions and can't figure it out. I'm new to this and I'm sure it is easy but well I'm green