#!/bin/bash # This script monitors CPU and memory usage cpuUsage=$(top -bn1 | awk '/Cpu/ { print $2}') echo "$cpuUsage"