help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs interface for the unix file(1) command


From: Matthias Meulien
Subject: Re: emacs interface for the unix file(1) command
Date: 09 Oct 2003 23:27:24 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.93

Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> wrote:

> Is there also something that allows me to "do the right thing"
> according to the output of file?

Use `dired-do-shell-command' which is binded to the `!' key. For
example,

 ! file ? | grep PostScript - && gv ? RET

will open the current file with GhostView if and only if it is a
PostScript file; It works with list of files when using the process
mark.

Here `dired-aux' needs to be loaded.
-- 
Matthias


reply via email to

[Prev in Thread] Current Thread [Next in Thread]