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

Re: Questions with rsync



2009/6/13 gmspro <gmspro yahoo com>:
>
> --- On Thu, 6/4/09, Steven Stern <subscribed-lists sterndata com> wrote
>> > #! /bin/sh
<snip>
>> > /dev
>> > /home/*/.gvfs/
>> > /home/*/.google/
>> > /home/*/.dbus/
>> > /home/*/.fonts/
>
> There are no files like
>
> /home/*/.gvfs/
> /home/*/.google/
> /home/*/.dbus/
> /home/*/.fonts/
>
> Can I avoid these lines?

Yes.

> And I have some confusions too.
> /home/* means everything in the /home directory.
> So what does it mean by /home/*/.gvfs?

* expands to everything in the directory, so if you have:

/home/user1
/home/user2
/home/user3

That expands to /home/user1/.gvfs/ /home/user2/.gvfs/ /home/user3/.gvfs/

To put it in English, it means "the .gvfs folders within every
subdirectory of /home/"

--
Sam


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