paste
Paste command is one of the useful commands in Unix or Linux operating system. It is used to join files horizontally (parallel merging) by outputting lines consisting of lines from each file specified, separated by tab as delimiter, to the standard output
Generate one beep tone only
Generate random tone
Generate a random long tone
rpeggiated cyber riff (repeatable, actually melodic)
Query CPU Temperature Using /sys/class/thermal
Print core temp without lm_sensors
paste \
<(for d in /sys/class/hwmon/hwmon*; do
name=$(<"$d/name")
for t in "$d"/temp*_input; do
[ -r "$t" ] || continue
lbl="${t%_input}_label"
label=$( [ -r "$lbl" ] && <"$lbl" || basename "$t" )
printf "%s/%s\n" "$name" "$label"
done
done) \
<(for d in /sys/class/hwmon/hwmon*; do
for t in "$d"/temp*_input; do
[ -r "$t" ] && cat "$t"
done
done) |
column -t |
sed 's/\(.\)..$/.\1°C/'
Another version to print core temp without lm_sensors
paste \
<(for d in /sys/class/hwmon/hwmon*; do
name=$(<"$d/name")
for t in "$d"/temp*_input; do
[ -r "$t" ] || continue
lbl="${t%_input}_label"
label=$( [ -r "$lbl" ] && <"$lbl" || basename "$t" )
printf "%s/%s\n" "$name" "$label"
done
done) \
<(for d in /sys/class/hwmon/hwmon*; do
for t in "$d"/temp*_input; do
[ -r "$t" ] && cat "$t"
done
done) |
column -t |
sed 's/\(.\)..$/.\1°C/'