Olaf Corten's OCUS help page for Pro_Purge

Help and/or history for Pro_Purge

See also entry in DESCRIPTION file

Usage: Pro_Purge [options] [dir]
 
	Pro_Purge moves all backup files from your current directory
	(or from [dir]) to your dumpster directory.

	options:	-h   =>	this help screen
			-i   =>	inform only
			-s   =>	run silently
			-ss  =>	run really silent
			-1   =>	Change all extensions of purged files to 1
			-c x =>	with x as a numerical value (1-9) for the
				number of copies to retain (default = 1)
			-m   =>	Count total size of files to be moved (in Mb).
			-r   => REVERSE MODE. LEAVE OLDEST VERSION
			-p   => Use original Pro/ENGINEER purge command

	The -1 option will not work if you set the number of copies to
	retain greater than 1.

Author: Olaf Corten, the Netherlands
E-Mail: olafc@molding.fico.nl or ocorten@knoware.nl

################################################################################
# History:
# 990419 Another fixed serious bug for SUN: newest rev. not always found
#	 ('sort +2 -3n' changed to 'sort -n +2 -3')
# 970131 Fixed serious bug for SUN: newest revision not always kept (sort +2n
#	 replaced by sort +2 -3n).
# 970123 Added REVERSE MODE.
# 970102 Fixed bug: forgot the $ in front of NR_OF_COPIES at line 258.
# 961122 LS_COMMAND decide added (fix for non-SGI users)
# 961118 Changed /bin/split to /usr/bin/split (fix for non-SGI users)
# 961104 Added -m option.
# 951215 Changed split to /bin/split
# 951211 Changed /sbin to /bin (fix for SUN users)
# 950919 Fixed bug in sed command (removed extraneous "d").
# 950612 added -i, -s and -c options.
# 950220 Incorporated sed script by Neil Temperley, CSIRO Division of Applied
#	 Physics, Australia. Deleted Glenn's script which could not handle
#	 large directories.
# 950215 Incorporated awk script written by Glenn K. Beer of Lawrence Livermore
#	 National Laboratory to decrease the runtime significantly.
#	 Moved cleaning commands for plot files etc. to Pro_Clean. Added commandline
#	 options. Added break_label.
# 950105 Added removal of *.ps files created by Pro/ENGINEER older than 4 days
#	 Uses the script remove_if_proe_created.
#	 Removed -atime +4 from find commands
#	 Added MAX_DAY parameter
# 920715 Olaf Corten: Added another foreach loop. Purge.out will now
#	 be split into files of 300 lines in tmp2dir. These files
#	 will be scanned in the first foreach loop.
#	 It is likely when skipping from one scanfile to the next 
#	 that an older version of a drawing or part remains on the 
#	 directory.
#        Only p.plt files will be deleted. (not *.plt)
# 910511 Olaf Corten: changed remove to move (to $home/dumpster directory)
#        + echo moved files + also move p.plt and core
# 910314 df	Changed 'while' to 'foreach'.
# 910311 James include pu of files w/out extensions.
# 900104 James Fixed for when parameter given
# 890922 James Made it generic
#
# BUGS:	If there are more than 689 backup files to purge of one model, the
#	script will choke (but it is not likely that you save one model
#	689 times during the day).
#
################################################################################