Thanks Rudi it did worked, but my requirement has changed a bit and need your help again as master file has changed
Master.txt
Refernce.txt
Ouput should look like as follows:
Using the below code, it is working fine in case master.txt has absolute value. But we need to match first 4 or 6 or 15 digits in reference.txt for each comma separated first 2 fields as master.txt will contain only these and not absolute values.
Last edited by Franklin52; 03-19-2013 at 04:17 AM..
Reason: Please use code tags for data and code samples
Hi All,
How do I search first string & second string and copy all content between them from one file to another file?
Please help me..
Thanks In Advance.
Regards,
Pankaj (12 Replies)
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)
I have a text (text.txt) and I would like to replace only the first 2 occurrences of a word (but I might need to replace more):
For example, if text is this:
CAR sweet head
hat red yellow
CAR book brown
tiger CAR cow CAR
CAR milk
I would like to replace the word "CAR" with word... (12 Replies)
Hi All,
I need help in manipulating the data in first column in a file.
The sample data looks like below,
Mon Jul 18 00:32:52 EDT 2011,NULL,UAT
Jul 19 2011,NULL,UAT
1] All field in the file are separated by ","
2] File is having weekly data extracted from database
3] For eg.... (8 Replies)
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)
Hello,
I'm trying the solve the following problem.
I have a file which I intend to use as a csv called master.csv
The columns are separated by commas.
I want to change the text on a specific row in either column 3,4,5 or 6 from xxx to yyy depending upon if column 1 matches a specified pattern.... (3 Replies)
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)
Hi I have a source file that looks like
a,b,c,d,e,f,g,h,t,DISTI(USD),MSRP(USD),DIST(EUR),MSRP(EUR),EMEA-DISTI(USD),EMEA-MSRP(USD),GLOBAl-DISTI(USD),GLOBAL-MSRP(USD),DISTI(GBP), MSRP(GBP)
I want to basically change MSRP(USD) to MSRP,USD and DIST(EUR) to DIST,EUR and likewise for all i'm using... (3 Replies)
Hi Forum.
I'm trying to cleanup the following data elements (To remove any occurences of commas and any extra spaces) while preserving the <TAB> delimiter using awk gsub but I have not been successful.
Original Data:
4365 monte des source rue,, ,<TAB>trevost<TAB>QC
Desired Data:... (1 Reply)
Discussion started by: pchang
1 Replies
LEARN ABOUT DEBIAN
kawari_encode
KAWARI8(6) Games Manual KAWARI8(6)NAME
kawari_encode, kawari_encode2, kawari_decode2 -- kawari 8.0 encoder/decoder
SYNOPSIS
kawari_encode [file ...]
kawari_encode2 [file ...]
kawari_decode2 [file ...]
DESCRIPTION
This manual page documents briefly the kawari command.
This manual page was written for the Debian distribution because the original program does not have a manual page. Instead, it has docu-
mentation written in HTML format. For detailed descriptions, see doc-base.
kawari_encode encodes kawari scripts to an encoded file. So the users for the scripts cannot easily read the content. It can be used to
protect the content of Kawari scripts. It takes several text files as inputs and converts them to .kaw files separately.
kawari_encode2 is an advanced kawari_encode. It is able to assign a symmetric key like some encrypting systems. The key affects the encod-
ing system. Users need the key to decode them.
kawari_decode2 is a decoder of the .kaw files. It takes several .kaw files and convert them back to .txt files. If the kaw files is encoded
by kawari_encode2, the key must be provided correctly for decoding.
AUTHOR
This manual page was written by Ying-Chun Liu (PaulLiu) <grandpaul@gmail.com> for the Debian system (but may be used by others). This man-
ual page is in public domain and is freely reproduced, distributed, transmitted, used, modified, built upon, or otherwise exploited by any-
one for any purpose, commercial or non-commercial, and in any way, including by methods that have not yet been invented or conceived.
KAWARI8(6)