Using terminal output as input



I am using a Debian-based distro (Ubuntu). Often I need to use the
output of one terminal command as the input for another. A classic
example is the which command:
$ which firefox
/usr/bin/firefox
$

Now, I would like to use that output as input, to start firefox. Other
than manually typing it in, is there a way for the user to use the
output directly?

Another example is when the OS lets the user know that she needs to
install a program and gives her the command to install it:
$ ekiga
The program 'ekiga' is currently not installed. You can install it by typing:
sudo apt-get install ekiga
bash: ekiga: command not found
$

In contrast to the "which" example, the text that the user needs is
buried in the output. Is there a way to use it anyway, without
retyping (and without using the mouse, which I often do not have).
Thanks!

--
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • RE: Newbie Aptitude Question about Security Updates
    ... but every command I could think of to try failed ... ... I haven't a clue what packages the initial install program has installed ... Newbie Aptitude Question about Security Updates ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • RE: fedora-list Digest, Vol 12, Issue 203
    ... >the Install programs app to get all the Development stuff at once. ... >Yes, I have tried running it from the command line, it just died with no ... >which defaulted to LVM use on a single drive. ... > O splendente, che vieni dalle sorgenti del Nilo, ...
    (Fedora)
  • New Debian31r1 Install - help me optimize - TNT2 - sudo - KDE - Xwindows
    ... of futzin with a new debian ... install, which was needed after a munged KNOPPIX install (I know, I ... the command 'dpkg-reconfigure xserver-xfree86' (which allowed me to ... trying to get the SOUND working yet..there's what seems to be a PCI ...
    (comp.os.linux.misc)
  • Re: Installing Net Framework Service Pack 1
    ... You *do* have a valid install of 1.1, ... We had already established that I had changed the ASP.NET tab to ... That's not a registry command. ... Here I try to enter the directory where the Net Framework 1.1 ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How do I install an application using a custom component
    ... If your command is still set up to launch cmd.exe with the path to batch file you can add "pause" command there to catch the CMD ... there is a flag (Install Shiled supported) that you can add to the setup.exe ... Use the same FBA Generic command. ...
    (microsoft.public.windowsxp.embedded)