diff --git a/command_parser.sh b/command_parser.sh new file mode 100644 index 0000000..2643197 --- /dev/null +++ b/command_parser.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +countCommandsperSess=0 + +for f in * +do + countCommandsperSess=`cat $f | grep 'SSH_CONNECTION' | cut -d ':' -f '8' | wc -l` + echo "$countCommandsperSess" +done + +exit 0