{ Berbagi, Menulis, Dan Mengajar } Ilmu… » 7. Operating System » Script Produksi.sh
Script Produksi.sh
#!/bin/bash
pemda=gresik;
cd /home/$pemda/public_html;
mkdir Produksi;
find . -type f -size +10k -exec ls {} \; > .data2.txt
for file in $(cat /home/$pemda/public_html/.data2.txt);
do mv “$file” /home/$pemda/public_html/Produksi/ > /dev/null;/;
done;
Filed under: 7. Operating System