LinuxQuestions.org
Visit the LQ Articles and Editorials section
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, 03: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, 12:00 PM   #2
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,159

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
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 10:19 AM
Simple Code to convert a field in the same file shayno90 Linux - Newbie 6 10-16-2009 04:36 AM
Need to get this code to run through whole text file while changing a field shayno90 Linux - Newbie 3 10-15-2009 02: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 08:43 PM
Perl add numbers in 2nd field twantrd Programming 6 10-19-2006 09:26 PM


All times are GMT -5. The time now is 08:44 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration