Top "Io-redirection" questions

I/O redirection is used in shell scripting.

Bash write to file without echo?

As an exercise, does a method exist to redirect a string to a file without echo? Currently I am using …

bash command-line io-redirection
Redirect stderr to stdout in C shell

When I run the following command in csh, I got nothing, but it works in bash. Is there any equivalent …

io-redirection csh
UTF-8 output from PowerShell

I'm trying to use Process.Start with redirected I/O to call PowerShell.exe with a string, and to get …

powershell encoding utf-8 character-encoding io-redirection
How do I capture all of my compiler's output to a file?

I'm building an opensource project from source (CPP) in Linux. This is the order: $CFLAGS="-g Wall" CXXFLAGS="-g Wall" ../…

linux shell g++ makefile io-redirection
In C how do you redirect stdin/stdout/stderr to files when making an execvp() or similar call?

I have the following code: pid_t pid = fork(); if (pid == -1) { // ... } else if (pid == 0) { stdin = someopenfile; stdout = someotherfile; stderr = …

c linux unix exec io-redirection
The '<' operator is reserved for future use

I am using PowerShell and am trying to run the following command: .\test_cfdp.exe < test.full | tee test.…

powershell redirect io-redirection
How can I redirect the output of the "time" command?

I tried to redirect the output of the time command, but I couldn't: $time ls > filename real 0m0.000s …

shell unix time io-redirection
How to use redirection in C for file input

I need to get the file from the terminal, I know the command will look like: ./a.out < fileName.…

c input io-redirection
Redirect standard input dynamically in a bash script

I was trying to do this to decide whether to redirect stdin to a file or not: [ ...some condition here... ] &…

linux bash shell io-redirection
redirect all output in a bash script when using set -x

I have a bash script that has set -x in it. Is it possible to redirect the debug prints of …

bash io-redirection