LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Closed Thread
  Search this Thread
Old 08-30-2006, 02:28 AM   #1
shyamdey
LQ Newbie
 
Registered: Aug 2006
Posts: 8

Rep: Reputation: 0
shel script/search for a function


hi all;

using shell script i want to open one file (existing file)and inert two lines at begining of file.and search one function inside the same file and insert two lines inside that function..please help me to write one script

thanks and regards
sanish
 
Old 08-30-2006, 04:43 AM   #2
spirit receiver
Member
 
Registered: May 2006
Location: Frankfurt, Germany
Distribution: SUSE 10.2
Posts: 424

Rep: Reputation: 33
You'll probably be able to do this with the command "sed". See "info sed" and "man sed" for its documentation.
 
Old 08-30-2006, 07:47 AM   #3
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

continue discussion here:
http://www.linuxquestions.org/questi...d.php?t=478431
 
  


Closed 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shel script shyamdey Programming 2 08-30-2006 07:49 AM
shel script problem regarding arrays dsids Linux - Newbie 1 08-19-2006 06:30 AM
shel script resources b123coder Programming 1 06-28-2005 08:02 AM
Korn Shel Script Error Lun1x Linux - Newbie 5 07-29-2004 04:58 PM
search function (bash script) LYK Programming 2 05-27-2004 10:51 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:04 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
Open Source Consulting | Domain Registration