Cynosure.X International LLC

: :

Add Comment | Related Links | TrackBack
Related Content

SynchronizeDelete.sh (GPL)

After happily using Synchronize.sh and its associated SynchronizeEliminate.txt file for the past year and a half, I now have a lot of unnecessary files scattered among my synchronized computers throughout the world. Although the SynchronizeEliminate.txt prevents those files from being transmitted back and forth, they persists on the systems that grabbed a hold of them. I needed a way to eliminate these files automatically. And this is where SynchronizeDelete.sh comes into play.

SynchronizeDelete.sh takes the file masks specified in the SynchronizeEliminate.txt file, find all occurrence of them, and deletes them (whether they are files or directories). SynchronizeDelete.sh starts the search in the current directory. You can use SynchronizeDelete.sh alongside Synchronize.sh or you can use it stand-alone to eliminate any files to pops up in your computer system repeatedly.

The format of the SynchronizeEliminate.txt file is specified in "Synchronize.sh (GPL)", see the TrackBack link for details. Be careful with directory file masks, because SynchronizeDelete.sh will recursively delete any directory that matches the mask without prejudice.

SynchronizeDelete.sh takes advantage of the Where.sh (GPL) Bourne shell script, which is also available on this site. So to use this script, you will need to download the Where.sh script if you don't already have it.

SynchronizeDelete.sh is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.

Attached File: SynchronizeDelete.sh (895 B)

Chieh Cheng
Wed, 30 Jan 2008 01:01:20 +0000

SynchronizeDelete.sh utilizes "find" and "grep". Both of these utilities understands regular expression patterns. Therefore, the file specification in SyncronizeEliminate.sh should be in regular expression pattern form.

Syncronize.sh on the other hand, utilizes "rsync", which understands a sub-set of file masks. Therefoer, SynchronizeEliminate.sh also needs to include file mask patterns.

In order to help me remember to add both types to SynchronizeEliminate.txt, I place the following comments on the top of my "SynchronizeEliminate.txt" file:

  # Synchronize.sh (rsync) uses file masks.
# SynchronizeDelete.sh (find, grep) uses regular expression patterns.
# When you create file patterns, you should include both types.

Chieh Cheng
Fri, 20 Feb 2009 18:33:45 +0000

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

Title: Synchronize.sh (GPL)
Weblog: Cynosure.X International
Excerpt: Synchronize.sh helps you synchronize two directories on local and/or remote machines. It uses rsync to synchronize the first path specified to the second path specified. then it synchronizes the files in the other direction. The command-line path arguments uses the same syntax as rsync. Synchroni . . .
Tracked: Wed, 30 Jan 2008 00:48:30 +0000

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 7 + 0?
Click button only once, please!

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

183 Users Online

Hacking Digital Cameras
Fun for Photographers


Get Our

Memecoins!



Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.