Deutsch English Français Italiano |
<20240413104140.4b4773a7@Nostromo> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Borax Man <rotflol2@hotmail.com> Newsgroups: comp.os.linux.misc Subject: Re: Files tree Date: Sat, 13 Apr 2024 10:41:40 +1000 Organization: A noiseless patient Spider Lines: 22 Message-ID: <20240413104140.4b4773a7@Nostromo> References: <uvba27$2c40q$1@dont-email.me> <slrnv1ikps.ggn.rotflol2@zerosignal.strangled.net> <uvcja3$2kbfj$8@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Date: Sat, 13 Apr 2024 02:41:41 +0200 (CEST) Injection-Info: dont-email.me; posting-host="f167faff294b4562d85f376dbdc1f4ae"; logging-data="2772007"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19yHDxyIBaiDmsTRmfNwRN72HQqgwJG11w=" Cancel-Lock: sha1:Bg0tnsUCn3CBEgQuLVzCwV7lOqc= X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Bytes: 1850 On Sat, 13 Apr 2024 00:23:31 -0000 (UTC) Lawrence D'Oliveiro <ldo@nz.invalid> wrote: > On Fri, 12 Apr 2024 15:29:02 -0000 (UTC), Borax Man wrote: >=20 > > One thing, find has a "printf" option, where you can format the output.= =20 > > you can remove the need for "tr" by using this instead of "-print0". =20 >=20 > -print0 can handle arbitrary filenames. Even the find(1) man page, in the= =20 > section =E2=80=9CUNUSUAL FILENAMES=E2=80=9D, says >=20 > If you are able to decide what format to use for the output of > find then it is normally better to use `\0' as a terminator than > to use newline, as file names can contain white space and newline > characters. >=20 > And that is what -print0 does. Good point, though I think newlines in a filename are an abomination.