find ./bin/ -name *py -printf '%p %h %f \n'|
while read a b c;
do
echo $a;
sed 's#/opt/p255/Python-2.4.4/bin/python#/opt/p255/app/cluster8100/bin/python#'\
$a > ./app/cluster8100/bin/$c;
chmod +x ./app/cluster8100/bin/$c;
done
find ./bin/ -name *py -printf '%p %h %f \n'|
while read a b c;
do
echo $a;
sed 's#/opt/p255/Python-2.4.4/bin/python#/opt/p255/app/cluster8100/bin/python#'\
$a > ./app/cluster8100/bin/$c;
chmod +x ./app/cluster8100/bin/$c;
done
Comentários