A raison d'un nom de fichier par ligne :
cat liste | while read f ; do mv "$f" "$f".old; done
J'allais répondre:
while read i; do echo $i; done < liste
Evitons d'utiliser cat (un process + un pipe) au lieu d'une redirection d'entrée...
Quant à xargs, on peut aussi le faire avec l'option -0 (et -n1 pour les traiter un par un)
cat liste |xargs -0 -n1 echo
Eric.
_______________________________________________________ Linux Mailing List - http://www.unixtech.be Subscribe/Unsubscribe: http://lists.unixtech.be/cgi-bin/mailman/listinfo/linux Archives: http://www.mail-archive.com/linux@lists.unixtech.be IRC: chat.unixtech.be:6667 - #unixtech NNTP: news.gname.org - gmane.org.user-groups.linux.unixtech