A Text Trim Command for the System

A text file to write in /usr/sbin/trim

  #!/bin/bash  while read -r i; do echo "$i" | tr '\n' ' '; done

And make executable:

chmod +x /usr/sbin/trim

Requires root rights. Then there should be a new command trim in the system.

Leave a Reply

Your email address will not be published. Required fields are marked *