Advanced Bash Scripting course: Lab - awk+sed 5/8

This is related to Advanced Bash Scripting course: Lab - awk+sed 5/8 where the task was to update the diskspace_monitor.sh script to monitor available disk space in /dev/tty partition using awk and sed.

When running the script, it doesn’t return anything and it seems that the requirement for "Updated the value for “avail_disk_space” variable in “diskspace_monitor.sh” script? has not been met.
Please see the attached screenshot showing the issue. Also note that the script in the Solution-tab has the exact same code as in my case.

Thanks,
Liz

Hi @ewiklund

It appears there is some issue with the lab.

The question asks to filter the Available space for /dev/tty but the script provided in the solution filters the Available space for /udev partition.

Even $(df -h | sed -n '/\bdev\/tty\b/p' | awk '{print $4}') though it prints the Available space for /dev/tty, it doesn’t result in a pass.

I’ll escalate this to the lab team for more information.

Regards.

Thank you Santosh for getting this escalated.
Liz (ewiklund)

Hi @ewiklund

This issue is now fixed.

Thank you for you patience and support.

Regards.

Thanks Santosh for getting this fixed.
Liz