The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Append to end of each line of file without a temp file. rorey_breaker Shell Programming and Scripting 4 04-03-2008 11:11 AM
How to append a Value to all the rows in a file dsshishya Shell Programming and Scripting 2 03-20-2008 05:04 PM
append character to a file enuenu High Level Programming 3 06-11-2007 05:59 AM
append file name contents to a target file gopskrish UNIX for Dummies Questions & Answers 2 10-27-2006 07:18 AM
Append a field to the end of each line of a file based on searching another file. ultimate Shell Programming and Scripting 2 03-29-2005 11:21 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-12-2008
vinay123 vinay123 is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 19
How to append to the file?

Hi
I have the file contents as below......

Code:
 MNG={{ABC|fdb|222}=12.0|1.3|1.5}
 MNG={{DEF|dfg|333}=11.0|0|0}
 MNG={{FGH|fcv|444}=4.0|7.0|1.5}

I need to search for the particular id '333' in the file and append to the end
of the particular row with the value 1.6.

Can any one help me to write the perl script for this query?

Last edited by Yogesh Sawant; 06-13-2008 at 05:47 AM.. Reason: added code tags
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:30 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0