Whats a bash prompt??
Ok OK let me see if i have it
the name of the string is EightyCharsLong
$EightyCharsLong
and the substr command is like the midstring command
substr()
I'm going to guess the first charecter is 0 so that 19 becomes the 20th position???
and of course the 10 is for the legth of the string to be inserted...
and morestring is the string that the first 10 charecters will be taken from and
inserted into the new string EightyCharsLong
so do i have to do this too?
my $morestring;
my substr($EightyCharsLong, 19, 10) = 'morestring';
or do i have to declare $EightyCharsLong previous?
my $EightyCharsLong;
my $morestring;
substr($EightyCharsLong, 19, 10) = 'morestring';
Oh YEAH!!! that was easy.... if i got it all correct!?
Lou
> Lets say i have a string 80 charecters long and i
> want to insert at string position 20 for 10 charecters.
substr($EightyCharsLong, 19, 10) = 'morestring';
I think this should work at a bash prompt: