.Dd Created:2025-10-03|Updated:2025-10-21| .de ocsi \\$* , .. .de oxr .ocsi .Xr \\$* .. .de oit .It \\$* .. .de obdi .Bl -dash -compact .oit \\$* .. .de obdl .Bd -literal -compact \\$* .. .de onote .Bl -hang -compact .oit \\$* .El .. .de ocomm .Bl -diag -compact .oit \\$* .El .. .de opsy .Pp .Sy - \\$* .. .de obc .Bl -column \\$* .. .de obc2 .obc opt desc .. .de obc3 .obc option arguments description .. .Dt CUT oh .Os OpenBSD 7.7 linux| .Nm cut .Nd split strings .Sh OPTIONS .Bl -column ".Sy - -opt " .It -d Ta | delimeter .It -c Ta | split by character count .It -d Ta | split by character (specify delimeter) .It -f Ta | specify field count. Use n,-n,n- .D1 -f 2, gets 2nd field; -f -2, gets up to the 2nd field; -f 2-, gets from the 2nd field to the end .El .Bd -literal -compact $ 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 .Ed .Sh SEE ALSO .Xr text_manipulation oh .opsy OpenBSD manpages: .Xr cut 1 .El .Sh AUTHORS .An -nosplit .Xr ohazot oh | .Xr about oh | .Lk https://ohazot.com ohazot.com .Aq Mt admin@ohazot.com