Hi,
I hope someone can share there scripting fu on my problem,
I would like to delete the 3rd character from a random length of string starting from the end
Example
Output
Hope you can help me..
Thanks in advance..
Hi,
I hope someone can share there scripting fu on my problem,
I would like to delete the 3rd character from a random length of string starting from the end
Example
Output
Hope you can help me..
Thanks in advance..
perl -pe 's/.(.{3})$/\1/' file
Same script in sed:
sed 's/.\(...\)$/\1' file
Thanks much it helps..