One way to capture colorized output is with the script
command. Running script
will start a bash session where all of the raw output is captured to a file (named typescript
by default).
More Related Contents:
- What does 2>&1 mean here?
- In the shell, what does ” 2>&1 ” mean?
- How to reload .bashrc settings without logging out and back in again?
- How to store standard error in a variable
- redirect COPY of stdout to log file from within bash script itself
- Colorized grep — viewing the entire file with highlighted matches
- What does it mean in shell when we put a command inside dollar sign and parentheses: $(command)
- How to Batch Rename Files in a macOS Terminal?
- LINES and COLUMNS environmental variables lost in a script
- Piping and Redirection
- What does ” 2>&1 ” mean?
- Temporarily change current working directory in bash to run a command [duplicate]
- Why doesn’t my terminal output unicode characters properly?
- Can a shell script set environment variables of the calling shell? [duplicate]
- How can I remove the extension of a filename in a shell script?
- sudo echo “something” >> /etc/privilegedFile doesn’t work [duplicate]
- While-loop subshell dilemma in Bash
- Check existence of input argument in a Bash shell script
- How do I grab an INI value within a shell script?
- Convert date time string to epoch in Bash
- How do I put an already-running process under nohup?
- How to obtain the absolute path of a file via Shell (BASH/ZSH/SH)?
- How can I count all the lines of code in a directory recursively?
- How does Ctrl-C terminate a child process?
- Running multiple commands in one line in shell
- Variable interpolation in the shell
- How to remove filename prefix with a Posix shell
- Why do I get “/bin/sh: Argument list too long” when passing quoted arguments?
- Validate date format in a shell script
- How to read variables from file, with multiple variables per line?