LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-06-2004, 12:48 PM   #1
linuxdev
Member
 
Registered: Feb 2004
Posts: 34

Rep: Reputation: 15
Kernel development Script


I wonder how can I do the following in my script:

-> Change the value of one variable...when this variable
in present in some other file.......I have the idea to replace
particuler value using replace and subsitute option
:4 s/testing/tested...........

but my problem is how to get into file having this variable
to be changed and then save the changes while exiting
from that file...

Any clue?
Thanks for your insight
 
Old 02-06-2004, 06:31 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,340

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
"Any clue?"

I think that the heart of your script will probably be a sed command. Here is the sed command man page.

http://publibn.boulder.ibm.com/doc_l...xcmds5/sed.htm

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
  


Reply



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
kernel development rpm ust Linux - Software 0 07-20-2004 03:21 AM
kernel development distp? alaios Linux - Distributions 1 03-21-2004 02:29 PM
Kernel development linuxdev Linux - Newbie 2 02-05-2004 03:00 PM
kernel development chrismiceli Linux - General 1 10-16-2003 12:27 PM
nvidia for development kernel watashiwaotaku7 Linux - General 2 03-18-2003 08:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:57 AM.

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
Open Source Consulting | Domain Registration