[TriLUG] possible awk/grep question
Brian McCullough
bdmc at bdmcc-us.com
Thu Jan 17 14:01:17 EST 2008
On Thu, Jan 17, 2008 at 10:50:56AM -0800, Joseph Mack NA3T wrote:
>
> I'm trying this but the passwd file is on another machine,
> the contents of which I get by
>
> ssh $machine cat /etc/passwd
>
> I can do
>
> ssh $machine cat /etc/passwd > foo
> while
> do
> .
> .
> done) <foo
>
> but I'd rather not write anything to an intermediary file.
> ssh $machine cat /etc/passwd
>
> look like a file.
>
> Any suggestions?
Have you tried "-", Joe? This is just off the top of my head, but
something like:
ssh cat passwd | do your stuff
with appropriate parentheses and backquotes might do the trick.
Brian
More information about the TriLUG
mailing list