Re: Files tree

Liste des GroupesRevenir à col misc 
Sujet : Re: Files tree
De : rotflol2 (at) *nospam* hotmail.com (Borax Man)
Groupes : comp.os.linux.misc
Date : 13. Apr 2024, 01:41:40
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240413104140.4b4773a7@Nostromo>
References : 1 2 3
User-Agent : Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu)
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:
 
One thing, find has a "printf" option, where you can format the output.
you can remove the need for "tr" by using this instead of "-print0". 
 
-print0 can handle arbitrary filenames. Even the find(1) man page, in the
section “UNUSUAL FILENAMES”, says
 
    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.
 
And that is what -print0 does.

Good point, though I think newlines in a filename are an abomination.


Date Sujet#  Auteur
12 Apr 24 * Files tree25James Harris
12 Apr 24 +* Re: Files tree3Ted Heise
12 Apr 24 i`* Re: Files tree2Rich
12 Apr 24 i `- Re: Files tree1Ted Heise
12 Apr 24 +* Re: Files tree6vallor
12 Apr 24 i+- Re: Files tree1Rich
13 Apr 24 i`* Re: Files tree4Lawrence D'Oliveiro
13 Apr 24 i `* Re: Files tree3Andy Burns
13 Apr 24 i  `* Re: Files tree2Lawrence D'Oliveiro
15 Apr 24 i   `- Re: Files tree1candycanearter07
12 Apr 24 +* Re: Files tree6Rich
12 Apr 24 i+- Re: Files tree1vallor
13 Apr 24 i+- Re: Files tree1Lawrence D'Oliveiro
20 Apr 24 i`* Re: Files tree3James Harris
20 Apr 24 i +- Re: Files tree1Rich
21 Apr 24 i `- Re: Files tree1Lawrence D'Oliveiro
12 Apr 24 +* Re: Files tree5Borax Man
13 Apr 24 i`* Re: Files tree4Lawrence D'Oliveiro
13 Apr 24 i `* Re: Files tree3Borax Man
13 Apr 24 i  `* Re: Files tree2Lawrence D'Oliveiro
15 Apr 24 i   `- Re: Files tree1candycanearter07
12 Apr 24 +- Re: Files tree1David W. Hodgins
13 Apr 24 `* Re: Files tree3Lawrence D'Oliveiro
13 Apr 24  `* Re: Files tree2The Natural Philosopher
14 Apr 24   `- Re: Files tree1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal