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
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
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,
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
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
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
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
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
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