Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
### The below commands are used to change all the Datasources from one to another for JasperSoft Server configuations during export import process.
rm -rf /tmp/test_export
mkdir /tmp/test_export
cp export.zip /tmp/test_export
cd /tmp/test_export
unzip export.zip
find ./ -type f | xargs sed -i 's/delt_cp_api/multi_contractport_api/g'
zip -r -x export.zip new_export.zip *
cd -
mv /tmp/test_export/new_export.zip
rm -rf /tmp/test_export
echo "DONE..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment