Tag: Draft
Check stdin, stdout and stderr in Python unit testing
2021-08-19In blackbox testing, we can use diff command to check an output file against expected results. To check standard output during unit testing, we can use a mock stdout and stderr to capture any outputs.
Using unittest module …
Writing Bash Scripts
2021-08-15To Bash or not to Bash
Writing shell scripts can automate command execution and help us become more productive. Bash is the default shell for most linux distributions.
Which Bash
Check that your have Bash installed.
$ which bash …
How to use "grep" command
2021-08-13Syntax
grep [OPTION...] PATTERNS [FILE...]
grep [OPTION...] -e PATTERNS ... [FILE...]
grep [OPTION...] -f PATTERN_FILE ... [FILE...]
The grep
command takes in text from stdin or a file.
Quick Examples
example.txt
The lady with the …