Code Monkey home page Code Monkey logo

Comments (1)

camo-f avatar camo-f commented on July 24, 2024

Hi @fungiboletus, I ran into the same issue.
I found out that you can just install grep to override busybox's grep :

/ # grep --help
BusyBox v1.31.1 () multi-call binary.
/ # apk add --no-cache grep
/ # grep --version
grep (GNU grep) 3.4
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

This version includes the missing -U option (grep --help output) :

  -U, --binary              do not strip CR characters at EOL (MSDOS/Windows)

Same thing for du -P : busybox's du does not have -P option.

apk add --no-cache coreutils

On a side note, maybe this option could be removed, as it is the default behavior on "default" du :

  -P, --no-dereference  don't follow any symbolic links (this is the default)

Tested in Alpine Linux 3.12 Docker image. The downside is it requires more packages so the Docker image is weighed down by ~2MB (assuming you're running the script in a container).

from couchdb-dump.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.