How Do You Cut a String in Unix?
Contents How Do I Cut a String in Unix Script? Using the Cut Command You Can Also Use the -D and -F Flags to Extract a String by Specifying Characters to Split...
Contents
How do I cut a string in Unix script?
Using the cut Command
You can also use the -d and -f flags to extract a string by specifying characters to split on. The -d flag lets you specify the delimiter to split on while -f lets you choose which substring of the split to choose.
Must Read
How do I cut a specific word in Unix?
To cut by character use the -c option. This selects the characters given to the -c option. This can be a list of comma separated numbers, a range of numbers or a single number.