Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 167
  • Last Modified:

Easy question about outputs

Hi, I need to know how to output the echo on the screen and in a file like:
echo "testing" >screen >file.txt
0
mabell
Asked:
mabell
  • 2
1 Solution
 
ahoffmannCommented:
echo testing|&tee -a file.txt
0
 
mabellAuthor Commented:
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
 
ahoffmannCommented:
the & just enshures that STDERR is also redirected
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now