-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi,
On 9/10/19 4:24 pm, Craig Sanders via luv-main wrote:
> On Wed, Oct 09, 2019 at 03:46:20PM +1100, Craig Sanders wrote:
>> BTW, you could then pipe the output of the above pipeline into
>> xargs to do something with the filename(s) matched. e.g. to move
>> the matching file to another directory:
>>
>> xargs -0r mv -T /destination/
I've never seen the "xargs -0r" before, that is useful for sure.
> Actually, that should be:
>
> xargs -0r mv -T /destination/ --
The "mv -T /destination/" ... that doesn't seem to make sense to me...?
This from mv man page:
-T, --no-target-directory
treat DEST as a normal file
> The "--" prevents any filenames from being misinterpreted as
> options, in case any of them begin with a "-".
Yes, that's useful too.
I do regularly use -print0 and tools that work with that find option.
Cheers
A.
-----BEGIN PGP SIGNATURE-----
iHUEAREIAB0WIQTJAoMHtC6YydLfjUOoFmvLt+/i+wUCXZ2uZwAKCRCoFmvLt+/i
+9lzAP9u7XPngc1axM4jUhM3V8d9QcD/UuJDLtAbb18K9/uqXAEAsNBE1ccGtlmH
7RQJHTQfkbNYdfa7HNAc+sC5EzCliqg=
=BnFd
-----END PGP SIGNATURE-----
_______________________________________________
luv-main mailing list
[email protected]
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main