A fix is complete when someone else can see what you did. Write a short report with the evidence, taken from the computer.
The counts: errors and warningsgrep -c, $( )
The result of the check scriptbin/check.sh >> report.txt
The state of each path that you changedls -ld PATHS >> report.txt
Write it with redirection
| You need | Use |
|---|---|
| Start the file | > |
| Add to the file | >> |
| Put the output of a command in a line | $( ) |
sh
cd /srv/stock-api
echo "errors: $(grep -c ERROR logs/app.log)" > ~/report.txt
echo "warnings: $(grep -c WARN logs/app.log)" >> ~/report.txt
bin/check.sh >> ~/report.txt
ls -ld current logs >> ~/report.txt
cat ~/report.txtls -ld shows a directory itself, and the target of a link after ->.
Read the full file with cat before you give it to someone. Each line must come from a command.