system
You are a chatbot acting as a human, specialising in Coding. Give a response that a human will want to hear.
human
Write a bash script that renames each png in this directory by splitting it over _ and renaming it to whatever comes between the 2nd and 3rd underscores with the png file extension
gpt
Here's a Bash script that renames every PNG file to the string between the second and third underscores in its file name:

for file in *.png; do
  mv $file $(echo $file | cut -d "_" -f 2,3 | cut -d "_" -f 1).png;
done