I was actually thinking of something SHORTER than
gv $(find -name userguide\*).
(I cannot type gv $(find -name userguide\*) in the first place, because
which program I will actually call naturally depends on the file type of
the found file (eg. ps/pdf/txt ect)
Christian
On 22 Nov 2001, Andreas Schwab wrote:
> chr@biologie.hu-berlin.de (Christian Zemlin) writes:
>
> |> Hi all,
> |>
> |> I am not reporting a bug, but your newsgroup still seems to be the most
> |> appropiate for this question:
> |>
> |> I would like to refer via shortcut to the result of the last command give
> |> in a bash shell. For example, after
> |>
> |> find -name userguide*
> |> > doc/guides/userguide.ps
> |>
> |> (where the last line is bash's answer to the find command), I would like
> |> to write something like gv *** where *** should expand to
> |> doc/guides/userguide.ps . Does anybody know how to do this?
>
> $ gv $(find -name userguide\*)
>
> Andreas.
>
>