The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How to copy and paste line in shell script
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Rules & FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
How to copy and paste line in shell script
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
05-14-2008
era
Herder of Useless Cats
Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,063
Code:
sed '/host=atlx3 sid=atld3/{;h;s/^/#/p;x;s/mail=.*/mail=DISABLE/;}' abc.txt
era
View Public Profile
Visit era's homepage!
Find all posts by era