I need to use the cut command with a variable.I have to select a few characters so I tried cut -c30-42 but how do I join it with variable x.
Thanks
I need to use the cut command with a variable.I have to select a few characters so I tried cut -c30-42 but how do I join it with variable x.
Thanks
x="Where ... "
x=$x`echo "Hello There" | cut -c7-11`
That should do it