_                    _
  ___ | |__   __ _ _______ | |_
 / _ \| '_ \ / _` |_  / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
 \___/|_| |_|\__,_/___\___/ \__|

cutsplit strings

-c | split by character count
-d | split by character (specify delimeter)
-f | specify field count. Use n,-n,n-
   -f 2, gets 2nd field
   -f -2, gets up to the 2nd field
   -f 2-, gets from the 2nd field to the end
$ echo "a b c" | cut -d " " -f 2
b
$ echo "a b c" | cut -d " " -f 2-
b c
$ echo hello | cut -c 2
e

text_processing
OpenBSD manpages: cut(1)

(back to top)

2026-07-15 : Translated to Spanish.
2025-10-03 : Created.

(back to top)

ohazot | about | ohazot.com <admin@ohazot.com>

This document applies to: OpenBSD 7.7 linux| 2026-07-15