
wc -l sometimes produces leading spaces [1], so it's necessary to trim them to maintain expected output format. [1] https://unix.stackexchange.com/questions/205906/extra-space-with-counted-line-number/205910#205910 Change-Id: Ic95c44fa56051ef94319e663bbc533f77dbc3d19 Signed-off-by: Ruslan Aliev <raliev@mirantis.com>