Remove the First Capital Letter from Each Element

  • + 0 comments
    #!/bin/bash
    readarray myarray
    
    for (( i=0; i<${#myarray[@]}; i++ ));
    do
        echo .${myarray[i]:1:${#myarray[i]}} | tr "\n" " "
    done