<div dir="ltr">Hello<br>I have a problem (simple) with file name containing spaces.<br>I want to set a variable with a filename containing spaces. The file is the most recent one in its directory.<br><br>I succeeded to set the variable, but when I used it, I get the following error (which I have expected).<br>
<br>could you help to solde please.<br><br><br><br>adel@adel-laptop:~/boontoo$ FILE=`ls -1rt /mnt/movie/ | tail -1 `<br>adel@adel-laptop:~/boontoo$ echo $FILE<br>10-08-31 - O_ sport info - [1].ts<br>adel@adel-laptop:~/boontoo$ ls -l /mnt/movie/$FILE<br>
ls: ne peut accéder /mnt/movie/10-08-31: Aucun fichier ou dossier de ce type<br>ls: ne peut accéder -: Aucun fichier ou dossier de ce type<br>ls: ne peut accéder O_: Aucun fichier ou dossier de ce type<br>ls: ne peut accéder sport: Aucun fichier ou dossier de ce type<br>
ls: ne peut accéder info: Aucun fichier ou dossier de ce type<br>ls: ne peut accéder -: Aucun fichier ou dossier de ce type<br>ls: ne peut accéder [1].ts: Aucun fichier ou dossier de ce type<br><br><br clear="all"><br>-- <br>
PhD candidate in Computer Science<br>Address       <br>3 avenue lamine, cité ezzahra, Sousse 4000<br>Tunisia<br>tel: +216 97 246 706 (+33640302046 jusqu'au 15/6)<br>fax: +216 71 391 166<br>
</div>