User Tools

Site Tools


ubuntu:xargs:remove_blank_spaces_in_a_string

This is an old revision of the document!


Ubuntu - xargs - Remove Blank Spaces in a String

Just pipe the string to the xargs command.

echo "     Hello world!    " | xargs

returns:

Hello world!
ubuntu/xargs/remove_blank_spaces_in_a_string.1624364312.txt.gz ยท Last modified: 2021/06/22 12:18 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki