LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-30-2002, 06:59 PM   #1
larkin
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, 07:49 PM   #2
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

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

Quote:
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
Quote:
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 07:53 PM.
 
  


Reply


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 01:40 PM
Some simple questions RonnyZenn Linux - Laptop and Netbook 2 08-14-2004 11:52 AM
More Simple Questions xanas3712 Linux - Newbie 1 04-30-2004 08:29 AM
2 Simple Questions The Bag Linux - Newbie 3 10-20-2002 07:36 PM
a few simple questions JohnMT Linux - Newbie 2 07-07-2002 06:11 AM


All times are GMT -5. The time now is 01:53 AM.

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