Solved

Easy question about outputs

Posted on 2002-03-15
3
158 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 50 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to run a command as a nologin user 7 377
Getting permission denied on linux running a script 3 70
improve Shell script 5 155
bash file 10 49
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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