bashah bashah bashah : bash script


#!/bin/bash
# created by c1p1
# script bash for LINUX
# c1p1.wordpress.com

echo “bash script for PTSE,KL3,CVKS Network”
echo “cleaning file .ini..please wait…..”
find /home/path1/path2/ -type f -name “*.mp3” -exec rm -f {} \;
echo “cleaning done…………………..”
echo “cleaning file .mp4..please wait…..”
find /home/path1/path2/ -type f -name “*.mp4” -exec rm -f {} \;
echo “cleaning done…………………..”
echo “cleaning file .avi..please wait…..”
find /home/path1/path2/ -type f -name “*.avi” -exec rm -f {} \;
echo “cleaning done…………………..”
echo “cleaning file .3gp..please wait…..”
find /home/path1/path2/ -type f -name “*.3gp” -exec rm -f {} \;
echo “cleaning done…………………..”
echo “cleaning file .wmv..please wait…..”
find /home/path1/path2/ -type f -name “*.wmv” -exec rm -f {} \;
echo “cleaning done…………………..”
echo “cleaning file .mpg..please wait…..”
find /home/path1/path2/ -type f -name “*.mpg” -exec rm -f {} \;
echo “cleaning done…………………..”
echo “cleaning file .mpeg..please wait…..”
find /home/path1/path2/ -type f -name “*.mpeg” -exec rm -f {} \;
echo “cleaning done…………………..”
echo “cleaning file .ini..please wait…..”
find /home/path1/path2/ -type f -name “*.ini” -exec rm -f {} \;
echo “cleaning done…………………..”
echo “cleaning file .bup,vob,ifo,vob..please wait…..”
find /home/path1/path2/ -type f -name “*.bup *.vob *.ifo *.vob” -exec rm -f {} \;
echo “cleaning done…………………..”
echo “resyncronice on progress…please wait…..”
echo “…………………………………….”
echo “…………………………………….”
echo “…………………………………….”
echo “…………………………………….”
echo “…………………………………….”
echo “…………………………………….”
echo “…………………………………….”
echo “…………………………………….”
echo “…………………………………….”
echo “…………………………………….”
echo “…………………………………….”
echo “…………………………………….”
echo “…………………………………….”
echo “…………………………………….”
echo “…………………………………….”
echo “…………………………………….”
echo “…………………………………….”
echo “…………………………………….”
echo “…………………………………….”
echo “…sambil ngebul lah…biar machoo : ))))))”
echo “|=========================================|”
echo “|                                         |”
echo “|    \    /             \    /            |”
echo “|     \  /               \  /             |”
echo “|      \/                 \/              |”
echo “|                                         |”
echo “|               O                         |”
echo “|                                         |”
echo “|        \————–/                 |”
echo “|          |   |   |  |                   |”
echo “|        /————–\                 |”
echo “|                                         |”
echo “|                                         |”
echo “|                                         |”
echo “|=========================================|”
rsync -avH  –exclude ‘/.*’ /home/path1/path2/ /home/path1/path2-mirror/
echo “…………RESYNCRONICE DONE…………..”

find.command

2 Comments to “bashah bashah bashah : bash script”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: