Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Easy question about outputs

Posted on 2002-03-15
3
Medium Priority
?
163 Views
Last Modified: 2010-04-22
Hi, I need to know how to output the echo on the screen and in a file like:
echo "testing" >screen >file.txt
0
Comment
Question by:mabell
  • 2
3 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 150 total points
ID: 6869639
echo testing|&tee -a file.txt
0
 

Author Comment

by:mabell
ID: 6870025
ok thx it works (without '&')
:)
I have an other little question
how to test if a file is a text file in a "if" statement?

this is my last question hehe thx :)
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6873857
the & just enshures that STDERR is also redirected
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses
Course of the Month13 days, 9 hours left to enroll

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question