.Dd Created:$Mdocdate$ .Dt ohazot_cut .Tg back_to_top .Bd -literal -compact _ _ ___ | |__ __ _ _______ | |_ / _ \\| '_ \\ / _` |_ / _ \\| __| | (_) | | | | (_| |/ / (_) | |_ \\___/|_| |_|\\__,_/___\\___/ \\__| .Ed .Tg menu .Bl -column ".Sy ohazot " ".Sy ohazot " ".Sy ohazot " .It Xr ohazot oh Ta | .Xr docs oh Ta | .Xr about oh Ta .El .Dd Created:2025-10-03|Updated:2025-10-06 .Dt ohazot_cut .Os OpenBSD linux .Nm cut .Nd split strings .Sh OPTIONS .Sx back_to_top .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 .Sx back_to_top .Xr text_manipulation oh .Ss OpenBSD manpages .Xr cut 1 .Ss files .In cut.oh .Sh AUTHORS .Sx back_to_top .An -nosplit .Xr ohazot oh | .Xr about oh | .Lk https://ohazot.com ohazot.com .Aq Mt admin@ohazot.com