RE: change all files in directory

2002-02-01 Thread Brett W. McCoy
On Fri, 1 Feb 2002, Booher Timothy B 1stLt AFRL/MNAC wrote: > When I try to run the one-liners I get: > > Can't open *.cpp: Invalid argument. > Can't open *.hpp: Invalid argument. > > But when I do a dir command I get: > target_functions.cpptarget_modules.cpp global_constants.hpp > globa

RE: change all files in directory

2002-02-01 Thread Hanson, Robert
riday, February 01, 2002 10:46 AM To: Brett W. McCoy; Booher Timothy B 1stLt AFRL/MNAC Cc: [EMAIL PROTECTED] Subject: RE: change all files in directory When I try to run the one-liners I get: Can't open *.cpp: Invalid argument. Can't open *.hpp: Invalid argument. But whe

RE: change all files in directory

2002-02-01 Thread Booher Timothy B 1stLt AFRL/MNAC
hese files are there . . . or am I just doing something silly . . . tim -Original Message- From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 9:47 AM To: Booher Timothy B 1stLt AFRL/MNAC Cc: [EMAIL PROTECTED] Subject: Re: change all files in directory On Fri,

Re: change all files in directory

2002-02-01 Thread Brett W. McCoy
On Fri, 1 Feb 2002, Booher Timothy B 1stLt AFRL/MNAC wrote: > Hello, I am trying to change all files in a directory that contain the > strings Satellite satellite and SATELLITE that I need to change to target, > Target and TARGET. Because many of these are C++ source files I need to > preserve th

RE: change all files in directory

2002-02-01 Thread Craig Williams
ebruary 01, 2002 9:30 AM To: 'Booher Timothy B 1stLt AFRL/MNAC'; [EMAIL PROTECTED] Subject: RE: change all files in directory Yeah, here is an easy solution, run it right at the command line... (Make a backup of the files first!!) perl -pi -e 's|satellite|target|' *.cpp *.hpp

Re: change all files in directory

2002-02-01 Thread Jeff 'japhy' Pinyan
On Feb 1, Booher Timothy B 1stLt AFRL/MNAC said: >Hello, I am trying to change all files in a directory that contain the >strings Satellite satellite and SATELLITE that I need to change to target, >Target and TARGET. Because many of these are C++ source files I need to >preserve the case. I was t

RE: change all files in directory

2002-02-01 Thread Hanson, Robert
From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] > If you keep your code do not forget to add the /g option Oops! perl -pi -e 's|satellite|target|g' *.cpp *.hpp *.asc perl -pi -e 's|Satellite|Target|g' *.cpp *.hpp *.asc perl -pi -e 's|SATELLITE|TARGET|g' *.cpp *.hpp *.asc Rob -- To unsubscrib

RE: change all files in directory

2002-02-01 Thread Hanson, Robert
Yeah, here is an easy solution, run it right at the command line... (Make a backup of the files first!!) perl -pi -e 's|satellite|target|' *.cpp *.hpp *.asc perl -pi -e 's|Satellite|Target|' *.cpp *.hpp *.asc perl -pi -e 's|SATELLITE|TARGET|' *.cpp *.hpp *.asc Rob -Original Message- Fr

Re: change all files in directory

2002-02-01 Thread Jenda Krynicky
From: Booher Timothy B 1stLt AFRL/MNAC <[EMAIL PROTECTED]> > Hello, I am trying to change all files in a directory that contain the > strings Satellite satellite and SATELLITE that I need to change to > target, Target and TARGET. Because many of these are C++ source files > I ne