1. #!/bin/bash
    2. ALL_SH_FILE=$(find . -type f -name "*.sh")
    3. for file in ${ALL_SH_FILE[*]}
    4. do
    5. filename=$(echo $file | awk -F'.sh' '{print $1}')
    6. new_filename="${filename}.shell"
    7. mv "$file" "$new_filename"
    8. sed -i '2d' "$new_filename"
    9. done