#!/bin/sh time=$(date | awk '{ print $4}') year=$(date +'%Y-%m-%d') bat=$(acpi | head -n 1 | awk '{ print $3 " " $4}') echo $year $time $bat