LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   shell programming (https://www.linuxquestions.org/questions/programming-9/shell-programming-708432/)

papseddy 03-01-2009 03:04 PM

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

TB0ne 03-01-2009 03:55 PM

Quote:

Originally Posted by papseddy (Post 3461612)
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.


All times are GMT -5. The time now is 02:19 AM.