Shifting and Truncating
Posted: Thu Jul 19, 2018 11:54 am
Hi folks,
I have an input file which has 5 digit chars.
My requirement is to pad a character at the left most position and truncate the right most one. kindly suggest how to achieve this
Ex :
Input
1,ABCDE
Output:
1,SABCD
1,SSABC
1,SSSAB
1,SSSSA
1,SSSSS
I have an input file which has 5 digit chars.
My requirement is to pad a character at the left most position and truncate the right most one. kindly suggest how to achieve this
Ex :
Input
1,ABCDE
Output:
1,SABCD
1,SSABC
1,SSSAB
1,SSSSA
1,SSSSS