* How to use unix command such as wc on a buffer
@ 2013-03-03 15:24 AngusC
2013-03-03 17:55 ` Jambunathan K
0 siblings, 1 reply; 3+ messages in thread
From: AngusC @ 2013-03-03 15:24 UTC (permalink / raw)
To: Help-gnu-emacs
I can use a command such as wc on a file but in emacs I might have a buffer
which is not saved to a file. so how do I apply wc to the buffer.
I tried eg m-%
wc -w
But it just returns zero.
How do I apply it to the buffer?
--
View this message in context: http://emacs.1067599.n5.nabble.com/How-to-use-unix-command-such-as-wc-on-a-buffer-tp279787.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to use unix command such as wc on a buffer
2013-03-03 15:24 How to use unix command such as wc on a buffer AngusC
@ 2013-03-03 17:55 ` Jambunathan K
2013-03-03 18:18 ` AngusC
0 siblings, 1 reply; 3+ messages in thread
From: Jambunathan K @ 2013-03-03 17:55 UTC (permalink / raw)
To: AngusC; +Cc: Help-gnu-emacs
AngusC <anguscomber@gmail.com> writes:
> I can use a command such as wc on a file but in emacs I might have a buffer
> which is not saved to a file. so how do I apply wc to the buffer.
>
> I tried eg m-%
>
> wc -w
>
> But it just returns zero.
>
> How do I apply it to the buffer?
M-x apropos-command RET count
C-x h M-| wc -w
>
>
>
> --
> View this message in context: http://emacs.1067599.n5.nabble.com/How-to-use-unix-command-such-as-wc-on-a-buffer-tp279787.html
> Sent from the Emacs - Help mailing list archive at Nabble.com.
>
>
--
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to use unix command such as wc on a buffer
2013-03-03 17:55 ` Jambunathan K
@ 2013-03-03 18:18 ` AngusC
0 siblings, 0 replies; 3+ messages in thread
From: AngusC @ 2013-03-03 18:18 UTC (permalink / raw)
To: Help-gnu-emacs
Ah, shell command on region. Many thanks.
--
View this message in context: http://emacs.1067599.n5.nabble.com/How-to-use-unix-command-such-as-wc-on-a-buffer-tp279787p279800.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-03 18:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-03 15:24 How to use unix command such as wc on a buffer AngusC
2013-03-03 17:55 ` Jambunathan K
2013-03-03 18:18 ` AngusC
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).