Is there an easy way to concatenate the result of two Linux commands, in one line (i.e., without using variables)?
I pull the local outdoor temperature from a nearby weather station. The result today is:
I simply want to add the units, so the result should look like this:
An example command, that almost gives me what I want is:
wget -q -O- "http://meteocentre.com/montreal/home_e.html" | grep -oP '(?<=Tn= ).*(?=°)' ; printf "°C\n"