[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Squeeze : 2 fichiers de même nom



Le Friday 21 January 2011 10:23:21 François TOURDE, vous avez écrit :
> Le 14995ième jour après Epoch,
>
> Jean-Jacques Doti écrivait:
> > Le 21/01/2011 01:15, Alain Vaugham a écrit :
> >> Le Friday 21 January 2011 00:59:03 NBaH, vous avez écrit :
> >>> od -c<  <(echo ./*)
> >>
> >> Voici :
> >>
> >> # od -c<  <(echo ./*)
> >> 0000000   .   /   h   e   u   r   e   .   h   t   m   l       .   /   h
> >> 0000020   e   u   r   e   .   s   h       .   /   v   a   f   a   c   .
> >> 0000040   t   x   t       .   /   v   a   f   a   c   .   t   x   t
> >> 0000060  \n
> >> 0000061
> >> #
> >
> > Salut,
> >
> > Et bien tu as donc bien deux fichiers avec des noms différents : le
> > premier (le plus gros des deux) s'appelle "vafac.txt" et le deuxième
> > "vafac.txt " (avec un espace à la fin du nom).
>
> Euh... Ils ont tous un espace à la fin, les fichiers ;) ... Et le "echo
> ./*" ne va-t-il pas n'imprimer que les caractères ... imprimables?

L'un des deux fichiers n'avait pas d'espace à la fin.

Je n'ai pas la possibilité d'utiliser un navigateur.
Voici ce que j'ai fait :

# ls -al
total 28
drwxr-xr-x 2 root root 4096 21 janv. 11:41 .
drwxr-xr-x 5 root root 4096 16 janv. 00:21 ..
-rw-r--r-- 1 root root   15 16 janv. 00:40 heure.html
-rwxr--r-- 1 root root  604 16 janv. 02:28 heure.sh
-rw-r--r-- 1 root root  297 21 janv. 11:41 toto.txt
-rw-r--r-- 1 root root  297 16 janv. 00:54 vafac.txt
-rw-r--r-- 1 root root   46 16 janv. 00:52 vafac.txt
# rm 'vafac.txt '
# ls -al
total 24
drwxr-xr-x 2 root root 4096 21 janv. 11:42 .
drwxr-xr-x 5 root root 4096 16 janv. 00:21 ..
-rw-r--r-- 1 root root   15 16 janv. 00:40 heure.html
-rwxr--r-- 1 root root  604 16 janv. 02:28 heure.sh
-rw-r--r-- 1 root root  297 21 janv. 11:41 toto.txt
-rw-r--r-- 1 root root  297 16 janv. 00:54 vafac.txt
# rm 'vafac.txt '
rm: impossible de supprimer « vafac.txt  »: Aucun fichier ou dossier de ce 
type
# rm 'vafac.txt'
# ls -al
total 20
drwxr-xr-x 2 root root 4096 21 janv. 11:42 .
drwxr-xr-x 5 root root 4096 16 janv. 00:21 ..
-rw-r--r-- 1 root root   15 16 janv. 00:40 heure.html
-rwxr--r-- 1 root root  604 16 janv. 02:28 heure.sh
-rw-r--r-- 1 root root  297 21 janv. 11:41 toto.txt
#                                                                          


-- 
Alain Vaugham
Clef GPG : 0xD26D18BC


Reply to: