Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Oct 19th, 2004, 8:58 PM   #1
joeljkp
Newbie
 
Join Date: Oct 2004
Location: Mississippi State University, USA
Posts: 1
Rep Power: 0 joeljkp is on a distinguished road
Send a message via ICQ to joeljkp Send a message via AIM to joeljkp Send a message via MSN to joeljkp
I'm trying to write a simple Bash script that performs some string and file operations, then runs an app on the result. This involves inserting a value into an existing external file.

So far, I've been doing this by echoing the first part of the file, then the variable, then the last part of the file, but this means that the file is internal to the script, instead of being an external entity.

I'm thinking that it'll be easier to just insert a $VARIABLE at the correct spot in the external file, then get Bash to parse it and replace this variable.

Any tips on how to do such a thing?

Thanks in advance.
__________________
Like my post? Help me get an iPod!
joeljkp is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:54 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC