Noch langsamer als die ltrim.sh
bearbeitet von U. Nix~~~bash
#!/bin/bash
# $home/bin/trim.sh
## USAGE:
# echo -e "\t \thallo\n \twelt\n Hallo Welt" | trim.sh
# program | trim.sh
# trim.sh < file
while read str; do
echo -n $str | xargs -d "\n";
done
~~~
Für die selben Daten (1800 Zeilen syslog) braucht das sogar mehr als 5 Sekunden.