LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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


Reply
  Search this Thread
Old 03-01-2009, 03:04 PM   #1
papseddy
LQ Newbie
 
Registered: Sep 2008
Location: New Delhi
Posts: 15

Rep: Reputation: 0
Question shell programming


hi, experts
everybody, i m newbie in shell programming and for cllg level i m working on a project. i have a problem i try a lot

"let be consider a file like smb.conf its only a text file i need to cut dis file in different pieces. and after that i want to edit dis file and after editing i want to place this cutting into same smb.conf file again with same possition.

let me explain more a file smb.conf, i take some line from it that 30-40 after that i edit these line accoding to me and when i complete dis editing then i want to place this line 30-40 at same possition.

i can cut this line but problem arise on the pasting these small files.

i hope you all members of developing get my words.
plz help me i m really confuse on this. plx tell me or give me some clue or script that help me
plz your help make me complete my project in my college level pls
thankz in regard
papseddy
 
Old 03-01-2009, 03:55 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by papseddy View Post
hi, experts
everybody, i m newbie in shell programming and for cllg level i m working on a project. i have a problem i try a lot

"let be consider a file like smb.conf its only a text file i need to cut dis file in different pieces. and after that i want to edit dis file and after editing i want to place this cutting into same smb.conf file again with same possition.

let me explain more a file smb.conf, i take some line from it that 30-40 after that i edit these line accoding to me and when i complete dis editing then i want to place this line 30-40 at same possition.

i can cut this line but problem arise on the pasting these small files.

i hope you all members of developing get my words.
plz help me i m really confuse on this. plx tell me or give me some clue or script that help me
plz your help make me complete my project in my college level pls
thankz in regard
papseddy
Sorry, your question is very hard to follow. Please write and spell clearly.

There are many bash scripting tutorials that can be found on Google, which will help you edit files. If you want to post what you've written already, and give a clear description of what it's doing/not doing, perhaps we can help.
 
  


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
Shell programming pawarsac Linux - Newbie 4 08-05-2006 04:43 AM
programming shell tuls Slackware 3 08-24-2005 05:58 PM

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

All times are GMT -5. The time now is 11:03 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