Skip to content

Instantly share code, notes, and snippets.

@uzleo
Created March 31, 2020 07:44
Show Gist options
  • Select an option

  • Save uzleo/22d5cb656e0d33f0dcc93b9a484b48ff to your computer and use it in GitHub Desktop.

Select an option

Save uzleo/22d5cb656e0d33f0dcc93b9a484b48ff to your computer and use it in GitHub Desktop.
mysql -D X -e "select id from fi_records where system='aes-82a2288' and sihft='swiftdfBESegm' and detected is null and error_type='Controlflow' and outcome='EDC';" | while read id; do id=$(printf "%06d" $id); tar xf swiftdfBESegm_300320201721_2.tar.gz swiftdfBESegm_300320201721_2/ml/fault${id}_log -O | head -30 >> x; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment