Split a String into Parts with `cut` in Bash

InstructorCameron Nokes

Share this video with your friends

Send Tweet

cut makes it quick and easy to break a string into parts based on a delimiter or get a substring. In practice, it’s somewhat similar to JavaScript’s String.split method. In this video, we’ll look at using cut to work with semver strings and truncate a long string.