Home > Archive > Unix Programming > May 2004 > how to comment out multiple lines in kshell?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
how to comment out multiple lines in kshell?
|
|
| Ryan Gaffuri 2004-05-21, 9:32 am |
| I can do
#
to do one line at a time. How do I bulk comment out many lines?
like you can in other languages?
| |
| Jens.Toerring@physik.fu-berlin.de 2004-05-21, 9:32 am |
| Ryan Gaffuri <rgaffuri@cox.net> wrote:
> I can do
> #
> to do one line at a time. How do I bulk comment out many lines?
> like you can in other languages?
What language are you talking about? I guess there are several
hundreds, if not thousands of "langages" (especially if you count
configuration files etc.) where '#' is used to comment out lines.
And many don't allow "bulk comments". On the other hand many
editors have commands for commenting out complete regions,
e.g. in emacs you have the "M-x comment-region" command, and
some also allow you to insert (or remove) text in the same
column(s) in a set of adjacent lines (e.g. "M-x string-rectangle"
or "C-x rt" and "M-x kill-rectangle" or "C-x rk").
Regards, Jens
--
\ Jens Thoms Toerring ___ Jens.Toerring@physik.fu-berlin.de
\__________________________ http://www.toerring.de
| |
| joe@invalid.address 2004-05-21, 11:35 am |
| rgaffuri@cox.net (Ryan Gaffuri) writes:
> I can do
>
> #
>
> to do one line at a time. How do I bulk comment out many lines?
If, by kshell you mean ksh, take a look at this thread from
comp.unix.shell:
http://groups.google.com/groups?hl=...3D100%26hl%3Den
Joe
--
"Surprise me"
- Yogi Berra when asked where he wanted to be buried.
|
|
|
|
|