Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-30-2002, 05:59 PM   #1
LQ Newbie
Registered: Apr 2002
Distribution: rh7.1 & mandrake 8.1
Posts: 1

Rep: Reputation: 0
simple (?) pipes questions

Hi. Question #1 is the following considered a single pipe:
(date; ls -la /homedir) | tee homelist | less

Question #2: if this is not considered a single pipe, what commands could I use in place of the | tee homelist | less, so that the output would go both to homelist & to screen? I tried
(date; ls -la > homelist) | less and this didn't work. Thanks.
Old 04-30-2002, 06:49 PM   #2
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
Re: simple (?) pipes questions

Originally posted by larkin
Hi. Question #1 is the following considered a single pipe:
(date; ls -la /homedir) | tee homelist | less
Each one of these "|" is a pipe
Originally posted by larkin
output would go both to homelist & to screen
You can save the output in a file (or maybe a variable) and then use it twice. You woult use "cat" for a file, or "echo" for a variable

Last edited by zmedico; 04-30-2002 at 06:53 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Questions...Hopfully Simple Answers. caps_phisto Linux - General 3 12-21-2004 12:40 PM
Some simple questions RonnyZenn Linux - Laptop and Netbook 2 08-14-2004 10:52 AM
More Simple Questions xanas3712 Linux - Newbie 1 04-30-2004 07:29 AM
2 Simple Questions The Bag Linux - Newbie 3 10-20-2002 06:36 PM
a few simple questions JohnMT Linux - Newbie 2 07-07-2002 05:11 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration