LinuxQuestions.org
Review your favorite Linux distribution.
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: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,856

Rep: Reputation: 310Reputation: 310Reputation: 310Reputation: 310
"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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 11:45 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration