Another bash scripting problem...
Markus Kolb
ubuntu-ml at tower-net.de
Wed Jun 22 13:51:33 UTC 2005
ZIYAD A. M. AL-BATLY wrote on Tue, Jun 21, 2005 at 15:34:44 +0300:
> On Mon, 2005-06-20 at 22:04 -0400, Matthew S-H wrote:
> > <snip>
> > 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.
> > <snip>
>
> find ~/.profile_sections -maxdepth 1 -type f
> or if you want sylinks to be sourced as well:
> find ~/.profile_sections -maxdepth 1 ! -type d
>
> Above will find all the files in a directory.
Which has the overhead of new shell creation and additional program
execution. I don't know why he should use any external program if it can
be done in script as well.
More information about the ubuntu-users
mailing list