Split a string on a delimiterBrief: This tutorial will help you understand how to split a string based on a specified delimiter.Use linux cut command to split a string based on specified delimeter. Use delimeter with -d command line option as below.Shellecho "root:x:0:0:root:/root:/bin/bash" | cut -d ":" -f61echo "root:x:0:0:root:/root:/bin/bash" | cut -d ":" -f6Output:/root Doc navigation← Check if string contains another string?Store command output to variable →