pbpaste | awk '{print substr($0, 1, length($0)-1) ">>" NR ".jpg"}' | bash