Code: Select all
cd $1
mkdir Sample
mv *sample* ./Sample/
if [ "$?" -ne 0 ]
then
rm -r Sample
fi
chmod 755 Sample/
mkdir Subs
mv *subs* ./Subs/
if [ "$?" -ne 0 ]
then
rm -r Subs
fi
chmod 755 Subs/
Code: Select all
cd $1
mkdir Sample
mv *sample* ./Sample/
if [ "$?" -ne 0 ]
then
rm -r Sample
fi
chmod 755 Sample/
mkdir Subs
mv *subs* ./Subs/
if [ "$?" -ne 0 ]
then
rm -r Subs
fi
chmod 755 Subs/