$ echo This is a test.
This is a test.
$ echo "This is a test." > ./test.txt
$ cat ./test.txt
This is a test.
/* echo command-line arguments */
#include <stdio.h>
int main(int argc, char *argv[]) {
int i;
for (i = 1; i < argc; i++)
printf("%s%s", argv[i], (i < argc-1) ? " " : "");
printf("\n");
return 0;
}
$ perl -e 'print join " ", @ARGV; print "\n"' This is a test.
This is a test.
$ python -c "import sys; print ' '.join(sys.argv[1:])" This is a test.
This is a test.