0

I have 3 directories: dir1 contains two subdirs. In every subdir there is a slackbuild. I want to build all slackbuilds, staying in the parent directory. I have tried

(cd *;sh *ld)

But it only builds the first slackbuild in first subdir.

1 Answer 1

3

Use for:

for i in */; do (cd "$i" && sh *ld); done

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .