Overview
Comment:rename now copies - no delete
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: f36162a6f12cf29213a8633ca9ef081f4486f7001d37a3aad205149c288c1c74
User & Date: gawthrop@users.sourceforge.net on 1998-08-14 15:37:38.000
Other Links: branch diff | manifest | tags
Context
1998-08-15
08:26:30
This is variable interations version - now going on to fixed
iterations
check-in: 1d3d0b408f user: gawthrop@users.sourceforge.net tags: origin/master, trunk
1998-08-14
15:37:38
rename now copies - no delete check-in: f36162a6f1 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
12:09:13
A passed by value - its destroyed by SVDcm check-in: c254fc6a31 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes
10
11
12
13
14
15
16



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

32
33
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

34
35
36







+
+
+














-
+


# Copyright (c) P.J.Gawthrop 1998

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.2  1998/01/06 13:57:39  peterg
## Now removes old version after copying
##
# Revision 1.1  1998/01/06  13:48:23  peterg
# Initial revision
#
###############################################################

old_name=$1
new_name=$2
extension=$3

if ls $old_name$extension > /dev/null 2>&1 
    then
	echo Renaming $old_name$extension to $new_name$extension
	sed "s/$old_name/$new_name/g" <$old_name$extension >$new_name$extension

	rm -f $old_name$extension
	#rm -f $old_name$extension
    fi


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]