![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Need to replace the first word of a line if it occurs again in the next line(shell) | geeko | Shell Programming and Scripting | 4 | 06-18-2009 03:36 PM |
| Get multiple line content between two chars | Feliz | Shell Programming and Scripting | 2 | 04-11-2008 01:29 PM |
| sed - Replace Line which contains the Pattern match with a new line | kousikan | Shell Programming and Scripting | 2 | 03-24-2007 07:24 AM |
| replace a string with content from another file | afatguy | Shell Programming and Scripting | 4 | 09-14-2006 10:25 PM |
| How to replace a variable content | josephwong | Shell Programming and Scripting | 4 | 06-26-2006 12:18 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How to replace a line content
Hi Experts,
I have binary files contain an ID Line as: : : $Header: FNDSCMON.fmb 115.6 2000/01/11 10:26:10 pkm ship$ : : where the ID Line format is: $Header: <File_Name> <Version> <Last_update_date_time> pkm ship$ In this Example: File_Name = FNDSCMON.fmb Version = 115.6 Last_update_date_time = 2000/01/11 10:26:10 I want to write a script to update the ID Line as: File_Name = the file name Version = old_version + 0.1 Last_update_date_time = current date_time so, the new ID line should be show as: : : $Header: <the file name> <old_version + 0.1> <current date_time> pkm ship$ : : Can anyone help? Thanks! Victor Cheung Last edited by victorcheung; 04-17-2008 at 02:11 AM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|