>>978
cd a #フォルダaの中に移動
find . -type f -exec mv -i {} . ¥;
心配だったら
find . -type f -exec echo mv -i {} . ¥;
で確認。