![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| removing comments from file | skully | Shell Programming and Scripting | 9 | 06-08-2008 10:44 PM |
| How to put the comments to 50 lines, using vi editor? | artikulkarni | UNIX for Dummies Questions & Answers | 3 | 02-08-2008 04:57 AM |
| need help appending lines/combining lines within a file... | mr_manny | Shell Programming and Scripting | 2 | 01-06-2006 06:45 PM |
| Use "read" with a text file with comments | mbarberis | Shell Programming and Scripting | 3 | 03-30-2005 03:24 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Add Comments to the specifi lines i na file
I have a requirement like below.I need to Comment some lines in a file.
File contains following information. { attribute1 attribute2 atrribute3 attribute4 attribute5 attribute6 attribute7 } I have a requirement like some times i need to comment lines 3 to before '}' and some times from 5 to before '}' Out Put for scenario1 { attribute1 attribute2 //atrribute3 //attribute4 //attribute5 //attribute6 //attribute7 } Out Put for schenario2 { attribute1 attribute2 atrribute3 attribute4 //attribute5 //attribute6 //attribute7 } Can any one please help me how can i acheive this. Thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|