source: trunk/source/geometry/solids/test/SolidsChecker/Rename.pl @ 1350

Last change on this file since 1350 was 1350, checked in by garnier, 13 years ago

update to last version 4.9.4

File size: 486 bytes
Line 
1#!/usr/local/bin/perl
2#
3#  Created:  Stefano Magni,  August 1998
4#
5#   Modified: J.Apostolakis  September 11, 1998
6#
7
8# replaceIDs file
9
10while (@ARGV){
11   $file= shift @ARGV;
12
13   open(FILE, $file) || die "Cannot open $file!\n";
14   $tmp= "/tmp/lof";
15   open(TMP, ">$tmp") || die "Cannot open temp file!\n";
16
17   while (<FILE>) {
18
19      $_ =~ s/\bTst10/Sc01/g ;
20      print TMP $_;
21   }
22   close(TMP);
23   close(FILE);
24   system("mv -f $file .bak.$file");
25   system("mv -f $tmp $file");
26}
Note: See TracBrowser for help on using the repository browser.