That part is written to stderr, use 2>
to redirect it. For example:
foo > stdout.txt 2> stderr.txt
or if you want in same file:
foo > allout.txt 2>&1
Note: this works in (ba)sh, check your shell for proper syntax
More Related Contents:
- How do I use sudo to redirect output to a location I don’t have permission to write to? [closed]
- Why should eval be avoided in Bash, and what should I use instead?
- How to redirect output to a file and stdout
- How to make a program continue to run after log out from ssh? [duplicate]
- How to generate a core dump in Linux on a segmentation fault?
- How to parse XML using shellscript? [duplicate]
- How do I use sed to change my configuration files, with flexible keys and values?
- How do I know the script file name in a Bash script?
- Why do you need to put #!/bin/bash at the beginning of a script file?
- Bash function to find newest file matching pattern
- How to loop over directories in Linux?
- Get program execution time in the shell
- ‘&&’ vs. ‘&’ with the ‘test’ command in Bash
- How to redirect stderr and stdout to different files in the same line in script?
- Linux bash: Multiple variable assignment
- How to sort a file in-place?
- What is the meaning of a double dollar sign in bash/Makefile?
- Is it OK to use the same input file as output of a piped command?
- Run cron job only if it isn’t already running
- Redirecting command output in docker
- When to wrap quotes around a shell variable?
- How to get file creation date/time in Bash/Debian?
- How to join multiple lines of filenames into one with custom delimiter
- Doesn’t sh support process substitution
- Meaning of tilde in Linux bash (not home directory)
- How do I delete all lines in a file starting from after a matching line?
- How to convert hex to ASCII characters in the Linux shell?
- How to check if a program is run in Bash on Ubuntu on Windows and not just plain Ubuntu?
- What are the rules for valid identifiers (e.g. functions, vars, etc) in Bash?
- Bash `wait` command, waiting for more than 1 PID to finish execution