How can I script moving files up one directory level with Terminal (or BBEdit worksheet)
This is untested: remove the echo if it looks right:
find ./Export -name '*.jpg' -print0 |
  xargs -0 sh -c 'for file; do echo mv &quot;$file&quot; &quot;${file%/*}&quot;/..; done' sh

The odd-looking trailing sh is required because it gets set as $0 in the shell body, so the rest of the arguments fed to it by xargs can be easily iterated.
This will leave the empty directories. To list empty directories:
find . -type d -empty -print

To delete empty directories:
find . -type d -empty -print -delete


To not rely on the file extension:
find ./Export -type f -print0 |
  xargs -0 sh -c '
    for file; do
      case &quot;$(file &quot;$file&quot;)&quot; in
        *&quot;JPEG image data&quot;*) echo mv &quot;$file&quot; &quot;${file%/*}&quot;/..;;
      esac
    done
  ' sh