Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

truncate: support for SIZE prefix #75

Open
tjanas opened this issue Sep 7, 2023 · 0 comments
Open

truncate: support for SIZE prefix #75

tjanas opened this issue Sep 7, 2023 · 0 comments

Comments

@tjanas
Copy link

tjanas commented Sep 7, 2023

~/Test $ truncate --help
BusyBox v1.37.0.git (2023-08-01 12:16:57 UTC)

Usage: truncate [-c] -s SIZE FILE...

Truncate FILEs to SIZE

        -c      Do not create files
        -s SIZE
~/Test $ truncate -s -64 testFile.bin
truncate: invalid number '-64'

From man pages:

SIZE may also be prefixed by one of the following modifying characters: ‘+’ extend by, ‘-’ reduce by, ‘<’ at most, ‘>’ at least, ‘/’ round down to multiple of, ‘%’ round up to multiple of.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant