Remove sections from each line of files.
Synopsis
cut [OPTION]... [FILE]...
Description
Print selected parts of lines from each FILE to standard output. Runs in the just-bash WASM shell inside SLICC.
Options
-d, --delimiter=DELIM Use DELIM instead of TAB for field delimiter.
-f, --fields=LIST Select only these fields.
-c, --characters=LIST Select only these character positions.
-b, --bytes=LIST Select only these byte positions.
--output-delimiter=STRING Use STRING as the output delimiter.
Examples
$ cut -d',' -f1,3 data.csv
Extract columns 1 and 3 from a CSV file.
$ cut -c1-10 file.txt
Extract the first 10 characters of each line.
Notes
Operates on the SLICC virtual filesystem (LightningFS/IndexedDB).
See Also
awk, paste, sort, tr