script to get concurrent request outfiles for list of concurrent request id.

This script is useful when the dev Team asks larger number of concurrent request outfiles frequently.

Before running this script copy the required concurrent request id to conrequestid.txt file.

To do this
Follow the step

cat > conrequestid.txt
<paste the concurrent request id list>

press CTL+c  ( To exit from cat command)

Then Run the script

./conoutfile.sh

#!/bin/bash

cd
. *******.env
cd $APPLCSF
mkdir outfile_bkp
for i in `cat conrequestid.txt`
do
cp $APPLCSF/out/*”$i”* $APPLCSF/outfile_bkp
done
mv outfile_bkp outfile_bkp`date +%d%m%Y_%H%M%S`

NOTE:*******please verify the code and Test this script in dev before use this in prod******

Recent Posts