Top "Io-redirection" questions

I/O redirection is used in shell scripting.

Write output to a file after piped to jq

How can I write a piped output that went through jq to a file in shell Example: curl api.example.…

shell io-redirection
Saving a batch variable in a text file

I am trying to save a batch variable into a text file. I currently have this code: @echo off Set …

variables batch-file save io-redirection
How do I suppress standard error output in PowerShell?

In a PowerShell script automating some SVN tasks I have the following function: function SvnUrlExists($url) { svn info $url | out-null 2&…

svn powershell io-redirection
Best way to capture output from system command to a text file?

I’m trying to capture output from using Perl’s system function to execute and redirect a system command’s …

perl shell system exec io-redirection
How can I redirect console output to file?

I'm new to c. Is there any simple way to redirect all the console's output (printfs etc.) to a file …

c shell io-redirection
How do I redirect output to a file with CreateProcess?

I tried using CreateProcess to run a simple command like hg > test.txt. I tried running the string as …

c++ c winapi io-redirection
Batch script with for loop and pipe

I would like all the csv files in a directory which filename does not contain word "summary". Inside the command …

windows batch-file for-loop cmd io-redirection
Capture stdout and stderr into different variables

Is it possible to store or capture stdout and stderr in different variables, without using a temp file? Right now …

bash shell command-line io-redirection
how to redirect output of multiple commands to one file

i have a bash script, that has the following two commands: ssh host tail -f /some/file | awk ..... > /some/…

bash io-redirection
How to echo "2" (no quotes) to a file, from a batch script?

How do I echo the number 2 into a file, from a batch script? This doesn't work: Echo 2>> file.…

windows batch-file cmd echo io-redirection