Gitlab Community Edition Instance

Commit a90d8ad9 authored by bnachtw's avatar bnachtw
Browse files

initial version of script for removing TSMMANAGER and SERVER_CONSOLE from q act extracts

parent 2f7d1a21
#! /bin/bash
echo getting logs by 'dsmadmc -se=<SERVER> -id=monitor -id=<> dataonly=yes -tab -outfile=<> "q act begind=<> begint=<>"' ":-)"
echo "SERVER_CONSOLE" > ./grep.exclude
for i in $(grep TSMMANAGER $1 | awk -F ":" '{print $NF}' | sed -e 's/ //g' -e 's/)$//' | uniq)
echo "SESSION: $i" >> ./grep.exclude
grep -v -f ./grep.exclude $1 > $1.grep
#rm -f ./grep.exclude
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment