Cmd Generator

cut

Remove sections from each line of files.

cut

Examples

# Cut fields by delimiter
cut -d, -f1,3 data.csv

# Cut characters
cut -c1-5 file.txt

# Cut with custom output delimiter
cut -d: -f1,3 --output-delimiter=' | ' /etc/passwd

# Complement (exclude fields 2-4)
cut -d, -f2-4 --complement data.csv

# Read from stdin
echo "hello,world" | cut -d, -f1