Andreas Kähäri <andreas.kah...@abc.se> writes:
i'm not sure why you're addressing this to me, as i'm not the
OP.
It's addressed to the thread in general.
Your response quoted me, then made use of the word 'you'. Which
you - and yes, i mean you, Andreas, specifically - have again done
below:
That said, yes, minimising the extent to which certain
non-'word'
characters
(i.e. roughly the POSIX 'alnum' class as described in
re_format(7))
_can_
make it easier to programatically do certain tasks which are
restricted by
the long and messy history of C and Unix development. Given
that
i've been
using computers for a few decades, i still instinctively don't
use
spaces in
filenames, even though they're very much allowed. But of
course,
that's not
what most of the world does, and this is an example of trying
to
work out
what the best tradeoffs might be when dealing with the
messiness of
the real
world.
Alexis.
With rsync(1):
rsync -n -aim --delete-excluded \
--include-from=list \
--include='*/' \
--exclude='*' \
source/ target
This would read your inclusion patterns from the file "list" (it
is
assumed that directories are entered as "dirname/***", which
matches the
name "directory" and all its content), include any directory,
and then
finaly exclude anything not already included. The matched names
would
be synchonised from beneath "source" to "target", and excluded
names
would be deleted from the target. With "-m", we don't keep
directories
at the target that ends up being empty.
You - by which i mean, you, Andreas, specifically - have quoted me
_at length_, in an email with _my email address_ in the To header,
before immediately making remarks not related to the text of mine
you quoted (which was instead related to the `-r` option to `read`
in the context of processing filenames, and which Страхиња has
addressed to my satisfaction).
If you - by which i mean, you, Andreas, specifically - want to use
'you' in the general sense of 'one' ("This would read one's
inclusions patterns ..."), which is certainly fair enough, then
please don't quote unrelated text _from me_ when doing so. If, for
some bizarre reason, your mail client prevents the removal of
unrelated quotes from others, use a better mail client.
In any case, from this point forward, please do not include my
email address in the delivery-related headers of any further
replies to this thread.
Alexis.