text: DO $_$
  DECLARE
  z text;
  BEGIN
    z:=$FUNCTIONBODY$
      CREATE OR REPLACE FUNCTION vocabulary_download.get_icd10gm_prepare (iPath text, iFilename text)
      RETURNS void AS
      $BODY$#!/bin/bash
      #set permissions=775 by default
      umask 002 && \
      cd "$1/work" && \
      unzip -oqj "$2" "Klassifikationsdateien/icd10gm*syst_kodes.txt" -d .
      
      #move result to original folder
      cd "$1"
      rm -f *.*
      mv work/*.txt "icd10gm.csv"
      $BODY$
      LANGUAGE 'plsh'
      SECURITY DEFINER;
    $FUNCTIONBODY$;
    --convert CRLF to LF for bash
    EXECUTE REPLACE(z,E'\r','');
  END $_$;