[linux-l] bash read interactive
Ivan F. Villanueva B.
iv at artificialidea.com
Mi Okt 31 10:58:47 CET 2007
Hallo,
warum funktioniert folgendes auf der Konsole nicht?
[ivan at samsung]% bash -c "for i in * ; do read -e NAME ; mv $i $NAME ; done"
a
mv: missing destination file operand after `a.txt'
Try `mv --help' for more information.
Aber als script?
#!/bin/bash
for i in * ; do
read -e NAME
mv $i $NAME
done
Ich wollte schnell viele Dateien unbenennen, aber es geht leider bei mir nicht
so schnell :-(
--
Iván F. Villanueva B.
Mehr Informationen über die Mailingliste linux-l