I need to remove the last character from a string in this command:
sudo docker stats --no-stream 39858jf8 | awk '{if (NR!=1) {print $2}}'
The result is 5.20%
, I need remove the %
at the end, giving 5.20
. Is it possibile to do this in the same command?