set variable with file name with space
Adel ESSAFI
adelessafi at gmail.com
Tue Aug 31 23:06:06 UTC 2010
thx
2010/9/1 Tom H <tomh0665 at gmail.com>
> On Tue, Aug 31, 2010 at 5:59 PM, Adel ESSAFI <adelessafi at gmail.com> wrote:
> >
> > adel at adel-laptop:~/boontoo$ FILE=`ls -1rt /mnt/movie/ | tail -1 `
> > adel at adel-laptop:~/boontoo$ echo $FILE
> > 10-08-31 - O_ sport info - [1].ts
> > adel at adel-laptop:~/boontoo$ ls -l /mnt/movie/$FILE
> > ls: ne peut accéder /mnt/movie/10-08-31: Aucun fichier ou dossier de ce
> type
> > ls: ne peut accéder -: Aucun fichier ou dossier de ce type
> > ls: ne peut accéder O_: Aucun fichier ou dossier de ce type
> > ls: ne peut accéder sport: Aucun fichier ou dossier de ce type
> > ls: ne peut accéder info: Aucun fichier ou dossier de ce type
> > ls: ne peut accéder -: Aucun fichier ou dossier de ce type
> > ls: ne peut accéder [1].ts: Aucun fichier ou dossier de ce type
>
> ls -l "/mnt/movie/$FILE"
> or
> ls -l /mnt/movie/"$FILE"
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
--
PhD candidate in Computer Science
Address
3 avenue lamine, cité ezzahra, Sousse 4000
Tunisia
tel: +216 97 246 706 (+33640302046 jusqu'au 15/6)
fax: +216 71 391 166
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100901/857b90af/attachment.html>
More information about the ubuntu-users
mailing list