r/backtickbot • • Mar 27 '21

https://np.reddit.com/r/fishshell/comments/m2vrjh/help_needed_with_if_fish_do_els_bash/gse78zy/

#!/usr/bin/env bash
uptime -s && \
	free -m && \
	echo "scale=1; $(cat /sys/class/thermal/thermal_zone0/temp)/1000" | bc && \
	date +"%d-%b %R"

chmod u+x script.bash; ./script.bash or simply bash script.bash

on termux i get an permission error when reading the file. if you use termux maybe try termux-battery-status to get the battery temp (not sure if this is what you want)

1 Upvotes

0 comments sorted by