LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-06-2012, 02:10 AM   #1
lakssreedhar
LQ Newbie
 
Registered: Jun 2012
Posts: 3

Rep: Reputation: Disabled
Smile perl code to update 2nd file with a field from first file


i have 2 text files.1st is something like `{RP}how are you{/RP}` and many sentences in the same form. File 2 is in the column format of the first one. I want to update the 2nd file like how <clause_start="rp"> and you `<clause_end="rp">`.
 
Old 07-07-2012, 11:00 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,630

Rep: Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265Reputation: 7265
would be nice a better example
 
  


Reply

Tags
perlscript


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Substituting zeros with dots in 2nd and 3rd field of a text file. iconig Linux - Newbie 9 05-31-2012 09:19 AM
[SOLVED] Simple Code to convert a field in the same file shayno90 Linux - Newbie 6 10-16-2009 03:36 AM
Need to get this code to run through whole text file while changing a field shayno90 Linux - Newbie 3 10-15-2009 01:30 PM
How to modify a field in few lines in a file and save the new file - in Perl rounak94 Programming 1 10-02-2008 07:43 PM
Perl add numbers in 2nd field twantrd Programming 6 10-19-2006 08:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration