ignore the rest of the string after reading () shell script code example Example: bash remove everything after character x echo "Hello: world" | cut -f1 -d":"