[Slackbuilds-users] RFC: Proposed mandb additions to doinst/douninst template

B. Watson urchlay at slackware.uk
Wed Sep 11 07:45:09 UTC 2024



On Wed, 11 Sep 2024, Nick Smallbone wrote:

>
> I just learned that find has a -printf flag which can be used to format the output, avoiding the need for sed/awk altogether:
>
> find usr/man -type f -a -name '*.gz' \
>    -printf "chroot . /usr/bin/mandb -f '/%p' &> /dev/null\n" \
>    >> install/doinst.sh

Ooh, I like this!


More information about the SlackBuilds-users mailing list