Questions tagged [echo]

Simple function outputting text. Exists in script languages.

echo is mainly used in batch (cmd). An example would be:

echo hello world

which prints "hello world" to the terminal.

The output by default prints directly to the command line, however, it may be piped into a following command as an input. This can be very handy and allows for interoperability between different processes/languages.

5742 questions
19
votes
4 answers

bash test yields "echo: command not found"

Ok, something funny happens all of a sudden. This test for i in `cat /mnt/usb/liste.txt `; do [ -f /mnt/usb/lsdvd.xml/$i ] || echo $i; done used to work fine (for every entry in the file liste.txt try to find a corresponding directory, print the…
Christian
  • 191
  • 1
  • 1
  • 4
19
votes
1 answer

print vs. echo in R

I'm running a batch process using Rscript. I would like to print messages to screen just like "echo" does in bash. So I use the function "print". The problem is that print's output does not go to the screen. It goes to the log file instead. Anybody…
Wilmer E. Henao
  • 4,094
  • 2
  • 31
  • 39
19
votes
1 answer

Calling Echo inside a function pre-pends echo string to return value in Powershell

I am a Powershell noob and seem to keep getting caught on little weird behaviors like this. Here is some test code: function EchoReturnTest(){ echo "afdsfadsf" return "blah" } $variable = EchoReturnTest echo ("var: " +…
spilliton
  • 3,811
  • 5
  • 35
  • 35
19
votes
11 answers

How to use css style in php

Im using php to display data from mysql. Here are my css statements: