![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| BASH: Any Way to Get User Input Without Requiring Them to Hit the Enter Key? | deckard | Shell Programming and Scripting | 2 | 03-06-2009 10:35 AM |
| Qmail requiring SMTP auth | vertigo23 | UNIX for Dummies Questions & Answers | 0 | 12-22-2005 05:04 PM |
| A complete Unix Newbie | Afinita | UNIX for Dummies Questions & Answers | 2 | 03-07-2004 03:06 PM |
| complete newbie | davidjk | UNIX for Dummies Questions & Answers | 2 | 08-08-2002 09:24 AM |
| Complete Newbie Question | Dpinion | UNIX for Dummies Questions & Answers | 1 | 12-21-2000 03:35 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Complete Newbie requiring help
Greetings
Just joined this forum and a complete newbie. So please be gentle ![]() I've never really scripted before nor had a project where I required to write some code. However I have a large project which I am currently doing by manually. I was wondering if someone could help me determine what scripting language to use and possibly help with assisting me with what needs to be done. I have a file with entries in the following format [some text.......RedHat] rubbish text more text more text [some text.......SUSE] rubbish text more text more text [some text.......Solaris] What I would like to create is a script that takes arguments (in this case RedHat,SUSE and Solaris] and then searches a file. When it reaches the first argument it copies the entire section starting from [ and ending when it gets to the next [. With each section, it replaces 'rubbish' with 'good' and it saves it to a file in the format <argument>.txt Thank you for any help offered or advice offered. Snoops |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|