Dateiansicht:
Datei: | Projekte -> Linux,Shell(sh, bash)-Trimmen eines Strings -> trim.sh |
---|---|
md5: | e8fc4d3eb820e0bc878bc8d2d89df607 |
sha1: | fbaf37f2f5848a1963f36bce084649e61b94d31e |
Download-Link: | Download |
- #!/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 $str;
- done