[PLUG] gigs of wasted space

Schiffmann, Franz Franz.Schiffmann at Fiserv.com
Tue Apr 6 13:41:02 UTC 2004


On Mon, 5 Apr 2004 23:03:59 -0700 Chris Penwell penned:

> #!/bin/bash

> #What  do we want to scan? enter the root directory of 
> #what you wish to scan
> 
> kdialog --inputbox "enter directory" / > ~/.filelight
> var1= cat ~/.filelight

Make the variable assignment like this: var1=`cat ~/.filelight`
(back ticks around the "cat" command, and no spaces around the "=" sign)

> #Execute the file itself using the temp file created
> #echo $var1
> 
> /usr/local/kde/bin/filelight $var1
> 
> #clean the Temp file after we close down
> 
>> Thanks. It's good for "at a glance" filesystem usage.
>>
>> 	I'm trying to set it up so that I can enter a directory to scan
>> manually, (defaulting to /) However, I'm not having very much luck with
it.
>> I can save the variable that I enter to a file but I can't get variable
>> back into the filelight command line.
>>




More information about the PLUG mailing list