The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
comment and Uncomment single task out of multiple task
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
comment and Uncomment single task out of multiple task
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
06-18-2008
bisla.yogender
Registered User
Join Date: Mar 2008
Posts: 30
you can use....
suppose test is the file name and you want to comment line having gsnmpproxy
grep gsnmpproxy test|
sed
-ie 's/ ^/#/g'
Thanks-
Yogi
bisla.yogender
View Public Profile
Find all posts by bisla.yogender
Find bisla.yogender's past nominations received
Find bisla.yogender's present nominations given