Skip to content

Create multiple studies via a bash script

Ben Selby edited this page May 26, 2023 · 3 revisions

Using prolific you could script creating multiple applications in one go. An example using bash is shown below:

#!/usr/bin/env bash

STUDIES=(
  docs/examples/star-wars.json
  docs/examples/star-trek.json
)

for study in "${STUDIES[@]}"; do
  echo "Creating study for ${study}"
  if prolific study create -t "${study}" -p -s ; then
    echo " Created"
  else
    echo " Error"
  fi
done

Table of contents

Clone this wiki locally