I used the following script
cd pathname
for y in `ls *`;
do sed "s/ABCD/DCBA/g" $y > temp; mv temp $y;
done
and it worked fine for finding and replacing strings with names etc. in all files of the given path.
I'm trying to replace a string which consists of path (location of file)
... (2 Replies)
I used the following script
cd pathname
for y in `ls *`;
do sed "s/ABCD/DCBA/g" $y > temp; mv temp $y;
done
and it worked fine for finding and replacing strings with names etc. in all files of the given path.
I'm trying to replace a string which consists of path (location of file)
... (11 Replies)
Hi,
filenames:
contains name of list of files to search in.
placelist
contains the names of places to be searched in all files in "filenames"
for i in $(<filenames)
do
egrep -f placelist $i
if ]
then
echo $i
fi
done >> outputfile
Output i am getting: (0 Replies)
find . -type f -name "*.sql" -print|xargs perl -i -pe 's/pattern/replaced/g'
this is simple logic to find and replace in multiple files & folders
Hope this helps.
Thanks
Zaheer (0 Replies)
Hi,
I am new to script and I want find one string from multiple files in diff directories and put that out put to new file.
Like I have A,B & C directories and each has multiple files but one file is unic in all the directories like COMM.txt
Now I want write script to find the string... (8 Replies)
Hello friends,
Plz suggest the find command,
How to search a string in a paticular string in miltiple files with current dirctory.:)
Thanks in advance.
Siva Ranganath Ch (2 Replies)
I'm trying to create what (should be) a simple bash script that will pull computer name and use that info to bind to one of three servers. Is there any way to do this without having a text file with the names of the servers and associated computer names? (5 Replies)
Hey guys. I know pratically 0 about Linux, so could anyone please give me instructions on how to accomplish this ?
The distro is RedHat 4.1.2 and i need to find and replace a multiple lines string in several php files across subdirectories.
So lets say im at root/dir1/dir2/ , when i execute... (12 Replies)
Hello all,
I have a directory with 2000+ files. I need to look in each file for an invoice number. To identify this, i can search for the string 'BIG' and then retrieve the next 30 characters. I was thinking awk for this, but not sure how to do it. Each file contains one long string and in... (8 Replies)
Discussion started by: jdinero
8 Replies
LEARN ABOUT DEBIAN
svn::base
native::Base(3perl) User Contributed Perl Documentation native::Base(3perl)NAME
SVN::Base - Base class for importing symbols for svn modules
SYNOPSIS
# Load the svn_ra_* functions into the SVN::Ra namespace.
package SVN::Ra;
use SVN::Base qw(Ra svn_ra_);
# Load svn_config_t structure accessors in the magic namcespace
# provided by swig, so we could use it returned by other functions
package _p_svn_config_t;
use SVN::Base qw(Core svn_config_);
DESCRIPTION
SVN::Base is a module importing the subversion perl bindings raw symbols created by swig, into proper namespace and make them easier to
use.
It will also find the accessors for members of a C struct, create an simpler accessor function like "$data->field()" and
"$data->field($new_value)".
Once you understand the convention of subversion functions in perl bindings, you could look at the subversion api and write them in perl.
The API is available in the source header files or online at http://svn.collab.net/svn-doxygen/.
INTERNALS
The perl bindings of swig wraps raw functions into different perl modules, for example, SVN::_Core, SVN::_Repos. Upon import, SVN::Base
bootstrap the requested module if it's not yet loaded, and iterate over the symbols provided in that module, it them puts the function with
prefix trimmed in the namespace of the caller for this import.
The 3rd through the last parameter is a list of symbol endings that you wish for SVN::Base not to import into your namespace. This is
useful for cases where you may want to import certaion symbols differently than normally.
CAVEATS
SVN::Base consider a function as structure member accessor if it is postfixed ``_get'' or ``_set''. Real functions with this postfixes will
need extra handling.
AUTHORS
Chia-liang Kao <clkao@clkao.org>
COPYRIGHT
Copyright (c) 2003 CollabNet. All rights reserved.
This software is licensed as described in the file COPYING, which you should have received as part of this distribution. The terms are
also available at http://subversion.tigris.org/license-1.html. If newer versions of this license are posted there, you may use a newer
version instead, at your option.
This software consists of voluntary contributions made by many individuals. For exact contribution history, see the revision history and
logs, available at http://subversion.tigris.org/.
perl v5.14.2 2004-12-04 native::Base(3perl)