Another bash scripting problem...
Vram
lamsokvr at xprt.net
Tue Jun 21 03:32:23 UTC 2005
Matthew S-H wrote:
>
> 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.
>
>
> ~Matt
>
What did the final script look like??
Vram
More information about the ubuntu-users
mailing list