Olaf Corten's OCUS help page for pro_replace

Help and/or history for pro_replace

See also entry in DESCRIPTION file

Usage: pro_replace  [option] searchstring  replacestring  files
 
	pro_replace replaces in all files the searchstring with the
	replacestring

	******* USE WITH EXTREME CAUTION *************

	If pro_replace finds a file with two points in the name it assumes
	it is a Pro/E file and makes a copy of the highest revision and
	increments the revision number.

	In all other cases this scripts overwrites the older version so be
	carefull.

	pro_replace needs at lest 3 arguments.

	options:	-h => this help screen
			-d => delete old Pro/E files
			-o => replace only in Pro/E files
			-n => no confirmation

	The options must be given as the first argument. Multiple options
	can be given by stringing them (e.g.: -od)
	with the -d option files will be moved to your dumpster directory.

	REPLACESTRINGS WITH A SPECIAL MEANING:
		o if the replacestring is @NOTHING than it means that you
		would like to replace the searchstring with nothing.
	
	BUGS:	Files which only differ by their second extension (also files
		without a second extension) are assumed to be identical.
		So in those files the replacements are not performed.

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

################################################################################
# History:
# 991026 Fixed in case sed command gets garbled. Can't use '=' and ':' in search or
#	 replace string.
# 990419 Fixed bug for SUN: newest rev. not always found
#	 ('sort +2 -3n' changed to 'sort -n +2 -3')
# 990118 Added @NOTHING special
# 970313 Added FASTGREP parameter.
# 970204 Fixed bug for SUN: newest rev. not always found (sort +2 -n =>
#	 sort +2 -3n)
# 970107 Added -s (silent) option.
# 961122 LS_COMMAND decide added (fix for non-SGI users)
# 961118 Changed /bin/split to /usr/bin/split (fix for non-SGI users)
# 960116 Only highest extension model will be replaced.
#	 Fixed single comandline file. Fixed too many arguments error.
# started with history 1996
################################################################################