cut

Select fields or characters from lines like cut, runnable via moonx

cut
coreutils
text
cli
wasm
moon add bobzhang/cut@0.1.0
Download zip
Author
Version
0.1.0
License
Apache-2.0
Last updated
1 hour ago
Downloads
1

Dependencies

README

#cut for moonx

Select fields or character positions from each line:

printf 'x,y,z\n' | moonx bobzhang/cut -d, -f1,3 moonx bobzhang/cut -c 1-4 fixed.txt

Options: -f LIST field list, -c LIST character list, -d CHAR field delimiter (default TAB), -s skip lines without the delimiter. Lists accept N, N-M, N-, and -M, separated by commas; output preserves input order.

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io