diff options
author | madmurphy <madmurphy333@gmail.com> | 2022-02-12 20:18:16 +0000 |
---|---|---|
committer | madmurphy <madmurphy333@gmail.com> | 2022-02-12 20:18:16 +0000 |
commit | e94d71fdc640d30ea21fd902eca8a473a03ba68e (patch) | |
tree | df7a7775e2de2b819f83d38dc92a8d86e73594e7 /doc/man/gnunet-search.1 | |
parent | 8c316d9dc98c66bcf5ff12a82528d7d195743885 (diff) | |
download | gnunet-e94d71fdc640d30ea21fd902eca8a473a03ba68e.tar.gz gnunet-e94d71fdc640d30ea21fd902eca8a473a03ba68e.zip |
`man gnunet-search`: better layout for `--printf` examples
Diffstat (limited to 'doc/man/gnunet-search.1')
-rw-r--r-- | doc/man/gnunet-search.1 | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/doc/man/gnunet-search.1 b/doc/man/gnunet-search.1 index c36f5d060..a3c6e8ece 100644 --- a/doc/man/gnunet-search.1 +++ b/doc/man/gnunet-search.1 | |||
@@ -377,16 +377,21 @@ Example 5: | |||
377 | #!/bin/sh | 377 | #!/bin/sh |
378 | { | 378 | { |
379 | printf '<list>' | 379 | printf '<list>' |
380 | gnunet-search -f '\en\et<file uri="%u"> | 380 | gnunet-search -f ' |
381 | \et\et<filename len="%l">%f</filename> | 381 | <file uri="%u"> |
382 | \et\et<size>%s</size>\en\et\et<mimetype>%m</mimetype> | 382 | <filename len="%l">%f</filename> |
383 | \et\et<result_id>%n</result_id> | 383 | <size>%s</size> |
384 | \et\et<metadata>%a\en\et\et</metadata>\en\et</file>' \e | 384 | <mimetype>%m</mimetype> |
385 | -i '\en\et\et<property tid="%i" type="%t"> | 385 | <result_id>%n</result_id> |
386 | \et\et\et<content len="%l">%p</content> | 386 | <metadata>%a |
387 | \et\et\et<property_id>%n</property_id> | 387 | </metadata> |
388 | \et\et\et<provided_by>%w</provided_by> | 388 | </file>' \e |
389 | \et\et</file>' \e | 389 | -i ' |
390 | <property tid="%i" type="%t"> | ||
391 | <content len="%l">%p</content> | ||
392 | <property_id>%n</property_id> | ||
393 | <provided_by>%w</provided_by> | ||
394 | </property>' \e | ||
390 | -t '2 s' commons | 395 | -t '2 s' commons |
391 | printf '\en</list>\en' | 396 | printf '\en</list>\en' |
392 | } > commons.xml | 397 | } > commons.xml |