[linux-l] shell skript probleme mit leerzeichen

Benjamin Schieder blindcoder at scavenger.homeip.net
Sa Okt 29 17:46:25 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Klaus Gerhardt wrote:
> Benjamin Schieder wrote:
> 
>> while read i ; do
>>
>>> basename=${i%.*}
>>> echo $i $basename.$1
>>> convert -resize 640x480 "$i" verkleinert/$basename.$1
>>> done
> 
>> done < <( ls )
> 
> Welche Art von Umleitung ist das? Gibt es dazu irgendwo eine
> Bescheibung? Oder hat das etwas mit dem Konstrukt "while read ..."
> zu tun?

Siehe man bash, Process Substitution.

Gruesse,
Benjamin

- --
#!/bin/sh #!/bin/bash #!/bin/tcsh #!/bin/csh #!/bin/kiss #!/bin/ksh
#!/bin/pdksh #!/usr/bin/perl #!/usr/bin/python #!/bin/zsh #!/bin/ash

Feel at home? Got some of them? Want to show some magic?

	http://shellscripts.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFDY5lQ7Wabow2Um2YRAiiyAJ9zqR9+ZVtAkSos3GtB4iUhPgzXMACdENUA
4pB6FE43Uu6eswVVa0HJNks=
=IrFK
-----END PGP SIGNATURE-----



Mehr Informationen über die Mailingliste linux-l