Another bash scripting problem...

Matthew S-H mathbymath at
Tue Jun 21 02:04:46 UTC 2005

On Jun 20, 2005, at 9:43 PM, Byron Saltysiak wrote:
> I believe the 'do' needs to be in the first line of the for loop:
> for ...
> do
>  ...
> done
viola!!  This worked!  Thank you :).

> one question though - what is this supposed to do? I can probably give
> you a cleaner script if I knew what you were doing.
It is supposed to source all of the files in a directory.
However, it needs to make sure of a few things.  It needs to own  
~/.profile_sections, and it shouldn't recurse into sub-directories.

Anyway, I am fine now.  I think I am starting to get the hang of this.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ubuntu-users mailing list