I want to substitute an output of a command with another command. In this case, I would like to take uuid and baseboard-serial-number of the machine using **dmidecode, **but those do not work on WSL and gave empty output.
I used different commands in WSL to get uuid and baseboard-serial-number :
for UUID :
wmic.exe csproduct get uuid | sed 's/\r$//' | sed -n 2p | sed 's/(.*)/\L\1/'
and
for baseboard-serial-number :
whoami.exe /user | sed 's/\r$//' | tail -n 1 | awk '{print $2}' && echo $WSL_DISTRO_NAME; } | md5sum - | awk '{ print $1}'
I want to substitute the output of both commands above with these commands : dmidecode -s system-uuid and dmidecode -s baseboard-serial-number.
