User Tools

Site Tools


ubuntu:xargs:trim_blank_spaces_from_a_string

Ubuntu - xargs - Trim blank spaces from a String

Just pipe the string to the xargs command.

echo "     Hello world!    " | xargs

returns:

Hello world!
ubuntu/xargs/trim_blank_spaces_from_a_string.txt · Last modified: 2021/06/22 12:19 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki