Ubuntu – How to convert the perl index script to bash function
I want to use perl to get the index of from any given string and substring in bash function. Here is the example for getting the indexOf value from perl script: https://www.geeksforgeeks.org/perl-index-function/ #!/usr/bin/perl # String from which Substring # is…