473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

global search and replace tool

I am in search of a free tool which can replace multiple strings on
the particular directory . Please let me know if any such , written in
perl.
Thanks
Athresh
Jul 19 '05 #1
4 4028
Tandem person wrote:
I am in search of a free tool which can replace multiple strings on
the particular directory . Please let me know if any such , written in
perl.


I think you will have to explain a bit more what you are talking about.
Directories (at least in the typical standard operating systems) are mere
lists of files (in the broadest meaning) and
at least I can't see where strings and directories have anything to do with
each other.

jue
Jul 19 '05 #2
Hi specification is as below.

I have few function calls that has to be changed to the new one in the
whole source files ,present in a single directory. Please let me know
if any such tools available.
"Jürgen Exner" <ju******@hotmail.com> wrote in message news:<eU*******************@nwrddc02.gnilink.net>. ..
Tandem person wrote:
I am in search of a free tool which can replace multiple strings on
the particular directory . Please let me know if any such , written in
perl.


I think you will have to explain a bit more what you are talking about.
Directories (at least in the typical standard operating systems) are mere
lists of files (in the broadest meaning) and
at least I can't see where strings and directories have anything to do with
each other.

jue

Jul 19 '05 #3


Tandem person wrote:
Hi specification is as below.

I have few function calls that has to be changed to the new one in the
whole source files ,present in a single directory. Please let me know
if any such tools available.
"Jürgen Exner" <ju******@hotmail.com> wrote in message news:<eU*******************@nwrddc02.gnilink.net>. ..
Tandem person wrote:
I am in search of a free tool which can replace multiple strings on
the particular directory . Please let me know if any such , written in
perl.


I think you will have to explain a bit more what you are talking about.
Directories (at least in the typical standard operating systems) are mere
lists of files (in the broadest meaning) and
at least I can't see where strings and directories have anything to do with
each other.

jue


perl -p -i -e 's/Oldname/Newname/' /pathToDir/*

Jul 19 '05 #4
Tandem person wrote:
I have few function calls that has to be changed to the new one in the
whole source files ,present in a single directory. Please let me know
if any such tools available.


In general you will need a fully-fledged parser for your particular
programming language in order to parse the source code of that programming
language. Otherwise you are running the risk that in addition to the desired
function calls other text pieces may be changed, too, if they happen to have
or contain the same character sequence (e.g. in a string or as part of the
name of some other function) .

If you think in your particular situation you can accept that risk then
please have a look at
- "perldoc -f glob" or "perldoc -f readdir" about how to get the names
of all files in a directory
- "perldoc perlop" for information about the "s" operator
("substitute"); maybe "perldoc perlre" for information about regular
expressions
- and "perldoc -q change" for the FAQ entry about "How do I change one
line in a file[...]?"

jue
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jane Doe | last post by:
Hi, I need to search and replace patterns in web pages, but I can't find a way even after reading the ad hoc chapter in New Rider's "Inside JavaScript". Here's what I want to do: function...
1
by: Zenobia | last post by:
Hello I want a search & replace text in source code for several files in several directories. It would seem that both Dreamweaver MX 6 and GoLive 6 offer this feature but not for .aspx file...
0
by: DaveJG | last post by:
I have a couple of questions involving the search/replace in the IDE and regular expressions. Any help would be greatly appreciated. 1. How would I replace two line feeds with one? That is ...
0
by: D Brown | last post by:
Does anyone know why my .NET development would hang / freeze when performing a Global Find / Replace on all files? I have a large ASP.NET VB Application. I have left the machine for 24 hours but...
2
by: Michael Peters | last post by:
is there a way to replace a certain sequence of characters by line feed (vbCrLf ), for all text columns in a table, using Search+Replace? -Michael
4
by: RoadRunner | last post by:
Hi, I have a question. I am asked to produce a global search of a given corporate name, in more that one database. Each database has different table names and different field names in the tables....
1
by: John | last post by:
Hello, I was wondering if anyone had any tips for some software that will do a global search and replace for table names and field names in access (across a split db would be nice also). ...
0
by: Jared | last post by:
Check out http://www.computerutils.com/TextGenie4Word/ . It has a pretty solid program that can do massive search and replace. -Jared
6
by: simon.robin.jackson | last post by:
Ok. I need to develop a macro/vba code to do the following. There are at least 300 corrections and its expected for this to happen a lot more in the future. Therefore id like a nice...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.