1
#====================script 5 -- ls reccurssive avec cd =======
#!/bin/bash
exec 2>/dev/null # redirige stderr pour toute la suite
# au cas ou le script est invoque sans argument $1
# n'existe pas, la commande suivante devient cd .
cd ${1:-.} # problem that i miss understood
for i in * ; do
if [ -d $i ] ; then
echo "$PWD/$i/ <-- repertoire"
$0 $i # le script s'invoque lui-même
else
echo $PWD/$i
fi
done
을 의미합니까 무엇 ================================ ===================
어떤 사람이 이것을 설명하면 어떤 의미로 사용하는지이 사람이 나에게이 CD $ {1 : -.}을 설명 할 수 있습니까?
질문에 이미 답변이 프랑스어로 나와 있습니다. – Cyrus