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
Need help in building Unix script susant.igate Shell Programming and Scripting 11 03-24-2009 08:44 AM
Building from scratch - UNIX genesisX UNIX for Dummies Questions & Answers 2 10-02-2008 05:07 AM
Building a Linux like LS for Unix 435 Gavea Shell Programming and Scripting 3 08-15-2008 03:14 PM
Help building the logic for a script fahadaizaz Shell Programming and Scripting 3 07-09-2008 06:55 AM
building a SET clause in shell script shalua Shell Programming and Scripting 14 04-10-2007 07:34 PM

 
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 04-03-2009
susant.igate susant.igate is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 12
Need help in building Unix script

Hi all,
We have a requirement like we need to create a program which will change a particular string in the file. For example

+=KA1238767 1121 3344645 686943 22356
01 567893 12435 12121 983627 121 1092 091217
02 may be for engine failure

In the above file we need to change the bold string to 56789C.
The new file will be as follows

+=KA1238767 1121 3344645 686943 22356
01 56789C 12435 12121 983627 121 1092 091217
02 may be for engine failure


The exact problem is the bold string may vary from time to time. It can be 145629 in that case the string which will be replaced with it is 14562I and so on. In general the last character needs to be changed to the corresponding alphabet. Eg.
1- A
2-B
3-C
4-D
5-E
....
9-I


Any type of suggestion or help will be highly appreciated.
Thank you in advance.

Regards
Susant
 

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 09:49 AM.


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