|
||||||||
|
|
#1
|
|
Im posting here cuz I know you guys know!
Is there a simple way to route standard out to the parameter of a second command... like say you want to find a file and then less it. something like: locate peanut.txt | less <stdin> thanks guys! Coenraad Loubser |
|
#2
|
|||
|
|||
|
On Thu, 13 Jan 2005 08:56:24 +0200, Coenraad Loubser
<(E-Mail Removed)> wrote: > Im posting here cuz I know you guys know! > Is there a simple way to route standard out to the parameter of a second > command... > like say you want to find a file and then less it. > something like: locate peanut.txt | less <stdin> > locate peanut.txt | xargs less -- BOFH excuse #270: Someone has messed up the kernel pointers |
|
#3
|
|||
|
|||
|
|
|
#4
|
|||
|
|||
|
In article <cs55vr$anl$(E-Mail Removed)>, Coenraad Loubser wrote:
>Im posting here cuz I know you guys know! >Is there a simple way to route standard out to the parameter of a second >command... http://tldp.org/guides.html Dec 6 13:54 Bash-Beginners-Guide Nov 15 08:41 abs-guide >like say you want to find a file and then less it. >something like: locate peanut.txt | less <stdin> backquotes - the ones to the left of the '1' key on most keyboards. less `locate peanut.txt` That says take the output of the locate command and feed that to 'less' as an argument. This is different from 'locate peanut.txt | less' which would display the text that locate found (filenames). Old guy |
|
#5
|
|||
|
|||
|
Coenraad Loubser wrote:
> Im posting here cuz I know you guys know! > Is there a simple way to route standard out to the parameter of a second > command... > like say you want to find a file and then less it. > something like: locate peanut.txt | less <stdin> > > thanks guys! Try: find <whatever> -exec less {} \; -- Jose Maria Lopez Hernandez Director Tecnico de bgSEC (E-Mail Removed) bgSEC Seguridad y Consultoria de Sistemas Informaticos http://www.bgsec.com ESPAÑA The only people for me are the mad ones -- the ones who are mad to live, mad to talk, mad to be saved, desirous of everything at the same time, the ones who never yawn or say a commonplace thing, but burn, burn, burn like fabulous yellow Roman candles. -- Jack Kerouac, "On the Road" |
![]() |
| Tags |
| bash, linux, syntax |
| Thread Tools | |
| Display Modes | |
|
|