Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kishorevaishnav/60f2cffdfa1927d8fa3b1acb12d5b14f to your computer and use it in GitHub Desktop.
Save kishorevaishnav/60f2cffdfa1927d8fa3b1acb12d5b14f to your computer and use it in GitHub Desktop.
### 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