Is it possible to cut string without breaking the string?
printf 'test.test' prints test.test without a new line.
But if I cut the output with printf 'test.test' | cut -d. -f1 printf 'test.test' | cut -d. -f1 printf 'test.test' | cut -d. -f1 , there will be a line of a new line << 24>.
source share