#!/bin/bash # EDITOR="mcedit" find . -maxdepth 1 -type d | while read pkg; do if [ "$pkg" != "." -a "$pkg" != "src" ]; then if [ -e $pkg/$pkg.SlackBuild ]; then echo "$EDITOR $pkg/$pkg.SlackBuild" ( $EDITOR $pkg/$pkg.SlackBuild ) fi fi done