How To Install Cut In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?
Maintainer: Michael Stone
Email: [email protected] .
Website: https://gnu.org/software/coreutils
Section: utils
Install cut
-
Debian
apt-get install coreutilsClick to copy -
Ubuntu
apt-get install coreutilsClick to copy -
Alpine OS
apk add coreutilsClick to copy -
Arch Linux
pacman -S coreutilsClick to copy -
Kali Linux
apt-get install coreutilsClick to copy -
CentOS
yum install coreutilsClick to copy -
Fedora
dnf install coreutilsClick to copy -
Raspbian
apt-get install coreutilsClick to copy -
macOS
brew install coreutilsClick to copy
Cut out fields from STDIN or files.
How to use cut?
Below are few example commands for cut that you can use in the terminal.
Cut out the first sixteen characters of each line of STDIN:cut -c 1-16Click to copyCut out the first sixteen characters of each line of the given files:cut -c 1-16 fileClick to copyCut out everything from the 3rd character to the end of each line:cut -c 3-Click to copyCut out the fifth field of each line, using a colon as a field delimiter (default delimiter is tab):cut -d':' -f5Click to copyCut out the 2nd and 10th fields of each line, using a semicolon as a delimiter:cut -d';' -f2,10Click to copyCut out the fields 3 through to the end of each line, using a space as a delimiter:cut -d' ' -f3-Click to copy
Install the latest version of cut in Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS from terminal. To install the cut just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of cut from the respository and install it in your computer/server.




