Hi
I want to print a text string to the screen
echo "test of a text1 string is not to long"
test of a text1 string is not to long
But I vant to restrict it to printing the first 15 karakters
echo "test of a text1 string is not to long"
test of a text1
I've tryed using
echo "test of a text1 string is not to long"|awk '{print substr($1,0,15)}'
but this only takes the first word
/Larshg
I want to print a text string to the screen
echo "test of a text1 string is not to long"
test of a text1 string is not to long
But I vant to restrict it to printing the first 15 karakters
echo "test of a text1 string is not to long"
test of a text1
I've tryed using
echo "test of a text1 string is not to long"|awk '{print substr($1,0,15)}'
but this only takes the first word
/Larshg