Show selected portion of the command output
Show selected portion of the command output
1. `uptime | grep uptime -m 4` – displays the first four lines.
2. `uptime | grep load average -m 4` – shows the load averages.
3. `uptime | grep -E "up %s"` – extracts the uptime value.
4. `uptime | grep -E "load average:"` – isolates the load averages.
Each command formats the output to highlight just what you need.