From b2b97e301892d89b9909bed17f4299e09af1e33b Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 20 Jan 2018 11:53:36 -0500 Subject: printf: Add %w and %Wk for file birth times %w and %W were chosen to match the format specifiers for file birth times from stat(1) --- parse.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'parse.c') diff --git a/parse.c b/parse.c index e71aa47..2811004 100644 --- a/parse.c +++ b/parse.c @@ -2406,7 +2406,7 @@ static struct expr *parse_help(struct parser_state *state, int arg1, int arg2) { cfprintf(cout, " %{blu}-Btime%{rs} %{bld}[-+]N%{rs}\n"); cfprintf(cout, " Find files Birthed %{bld}N%{rs} minutes/days ago\n"); cfprintf(cout, " %{blu}-Bnewer%{rs} %{bld}FILE%{rs}\n"); - cfprintf(cout, " Find files Birthed more recently than %{bld}FILEa%{rs} was modified\n"); + cfprintf(cout, " Find files Birthed more recently than %{bld}FILE%{rs} was modified\n"); cfprintf(cout, " %{blu}-depth%{rs} %{bld}[-+]N%{rs}\n"); cfprintf(cout, " Find files with depth %{bld}N%{rs}\n"); cfprintf(cout, " %{blu}-gid%{rs} %{bld}NAME%{rs}\n"); @@ -2448,6 +2448,11 @@ static struct expr *parse_help(struct parser_state *state, int arg1, int arg2) { cfprintf(cout, " %{blu}-nohidden%{rs}\n"); cfprintf(cout, " Match hidden files, or filter them out\n\n"); + cfprintf(cout, " %{blu}-printf%{rs} %{bld}FORMAT%{rs}\n"); + cfprintf(cout, " %{blu}-fprintf%{rs} %{bld}FORMAT%{rs} %{bld}FILE%{rs}\n"); + cfprintf(cout, " The additional format directives %%w and %%W%{bld}k%{rs} for printing file birth times\n"); + cfprintf(cout, " are supported.\n\n"); + cfprintf(cout, "%s\n", BFS_HOMEPAGE); state->just_info = true; -- cgit v1.2.3