#!/bin/bash
echo "Enter subject code:"
read pname
read -a arrayy <<< `cat /proc/mounts |grep sr0`
echo The files are being copied from: ${arrayy[1]}
cd ${arrayy[1]}
rm -r ~/tempsource
mkdir ~/tempsource
for jj in `find . -type f`
do
cp $jj ~/tempsource
done
chmod a+rwx ~/tempsource/*
cd ~/OLD_DATA
mkdir $pname
mv ~/tempsource/* $pname
echo $pname ": folder has been successfully created."
notify-send "Disk copy task Completed:"
echo "Insert Another Disk :"
eject
కామెంట్లు లేవు:
కామెంట్ను పోస్ట్ చేయండి