08-27-2015
Thanks All. Its resolved
Samrat
Last edited by samrat dutta; 08-27-2015 at 05:06 PM..
Reason: solved
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
i want to create a script that will search and replace the values inside a particular file. i have 5 files that i need to change some values inside and i don't want to use vi to edit these files. All the inputted values on the script below will be passed into the files.
cho ""
echo... (3 Replies)
Discussion started by: tungaw2004
3 Replies
2. Shell Programming and Scripting
I wish to replace values of specific parameters in an input file for batch runs of a java code. It's essentially a nested for-loop sorta like this:
valuearray1 contains values for param1
valuearray2 contains values for param2
for (all values in valuearray1)
go into specific position in... (2 Replies)
Discussion started by: daphantomica
2 Replies
3. Shell Programming and Scripting
Hi,
I have a folder which contains multiple config.xml files and one input file, Please see the below format.
Config Files format looks like :-
Code:
<application name="SAMPLE-ARCHIVE">
<NVPairs name="Global Variables">
<NameValuePair>
... (0 Replies)
Discussion started by: haiksuresh
0 Replies
4. Shell Programming and Scripting
I have a file (DCN.txt) that has about 35000 lines. It looks like:
10004470028
10005470984
10006470301
10007474812
....
I have several other files (a11.txt, a12.txt, a12_1.txt, a13.txt, etc. about 70, each 100 mb large) that have history records like so:
LINE 10005470984 01/06/2010... (13 Replies)
Discussion started by: oriqin
13 Replies
5. Shell Programming and Scripting
Hi
i am running a issue with the way i handel open file in perl
i have the following input file <File1>
D33963|BNS Default Swap|-261564.923909249|
D24484|BNS Default Swap|-53356.6868058492|
D24485|BNS Default Swap|-21180.9904679111|
D33965|BNS Default Swap|154181.478745804|... (6 Replies)
Discussion started by: kykyboss
6 Replies
6. Solaris
Hi,
I have a file which got only one column and got some keywords. I have another file where the keywords used in the first file are repeated in the second file.
Now I would like to know how many times each keyword from the first file is repeated in the second file.
Request your help on... (1 Reply)
Discussion started by: pointers
1 Replies
7. Shell Programming and Scripting
Hi all.
I have the following command that is successfully searching for any one of the strings on all lines of a file and replacing it with the instructed value.
cat inputFile | awk '{gsub(/aaa|bbb|ccc|ddd/,"1234")}1' > outputFile
This does in fact replace any occurrence of aaa, bbb,... (2 Replies)
Discussion started by: dazhoop
2 Replies
8. Shell Programming and Scripting
I have a environment property file which contains:
Input file:
value1 = url1
value2 = url2
value3 = url3 and so on.
I need to search all *.xml files under directory for value1 and replace it with url1.
Same thing I have to do for all values mentioned in input file. I need script in unix bash... (7 Replies)
Discussion started by: Shamkamde
7 Replies
9. Shell Programming and Scripting
Hi Team,
I am new to unix, please help me in this.
I have a file named properties.
The content of the file is :
##Mobile props
east.url=https://qa.east.corp.com/prop/end
west.url=https://qa.west.corp.com/prop/end
south.url=https://qa.south.corp.com/prop/end... (2 Replies)
Discussion started by: tolearn
2 Replies
10. Shell Programming and Scripting
In the below bash a file is downloaded when the program is opened and then that file is searched based on user input and the result is written to a new file.
For example, the bash is opened and the download.txt is downloaded, the user then enters the id (NA04520). The id is used to search... (5 Replies)
Discussion started by: cmccabe
5 Replies
LEARN ABOUT DEBIAN
locale::recodedata
Locale::RecodeData(3pm) User Contributed Perl Documentation Locale::RecodeData(3pm)
NAME
Locale::RecodeData - Abstract Base Class for Charset Converters
SYNOPSIS
# For compatibility with Perl 5.005 and earlier, you must
# *use* the module before inheriting from it!
use qw (Locale::RecodeData);
use base qw (Locale::RecodeData);
DESCRIPTION
The module Locale::RecodeData serves as an abstract base class to all converters used by Locale::Recode(3).
Adding new conversion modules is currently not straightforward, and you will have to edit the sources of some modules for that purpose.
First, you have to add your new converter class to the list found in Locale::_Conversions(3), so that Locale::Recode(3) knows about its
presence. If there are valid aliases for the codeset of your converter, you will also have to edit Locale::_Aliases(3).
Finally, you have to implement the (protected) conversion routine _recode(). See below ("INTERFACE") for details.
CONSTRUCTOR
new (from => FROM_CODESET, to => TO_CODESET)
The constructor takes two (named) arguments:
from The canonical name of the source codeset. Aliases have already been resolved and the name is converted to uppercase.
to The canonical name of the destination codeset. Aliases have already been resolved and the name is converted to uppercase.
You normally don't have to implement the constructor. The default constructor implemented here will store the source and destination
codesets in the protected members "_from" and "_to".
METHODS
The class implements one method:
_getError
Returns the (protected) member "_error".
INTERFACE
New conversion classes must provide the following interface:
new (from => FROM_CODESET, to => TO_CODESET)
The constructor takes two (named) arguments:
from The canonical name of the source codeset. Aliases have already been resolved and the name is converted to uppercase.
to The canonical name of the destination codeset. Aliases have already been resolved and the name is converted to uppercase.
_getError
Should return the last error (as a string) or false if there was no error.
This method is implemented in the base class already.
_recode STRINGREF
Should convert the argument "STRINGREF" in-place. In case of failure, return false, and make provisions that the method "_getError()"
returns an informative error message.
AUTHOR
Copyright (C) 2002-2009, Guido Flohr <guido@imperia.net>, all rights reserved. See the source code for details.
This software is contributed to the Perl community by Imperia (<http://www.imperia.net/>).
SEE ALSO
Locale::Recode::_Aliases(3pm), Locale::Recode::_Conversions(3pm), Locale::Recode(3pm), perl(1)
POD ERRORS
Hey! The above document had some coding errors, which are explained below:
Around line 179:
=cut found outside a pod block. Skipping to next block.
perl v5.10.1 2009-06-23 Locale::RecodeData(3pm)