Skip to content

Instantly share code, notes, and snippets.

View SakshamInABox's full-sized avatar
⚙️

Saksham Anand SakshamInABox

⚙️
View GitHub Profile
@joswr1ght
joswr1ght / ctsummarize.sh
Created November 10, 2021 14:08
ctsummarize: Create Multiple Output Files From CloudTrail Activity for Analysis
#!/bin/bash
REQUIREDUTILS="jq zcat mktemp sort uniq rm"
# Run program and test exit status to ensure success
function runtst {
"$@"
local status=$?
if (( status != 0 )); then
echo "error running command" >&2