sed '/^$/d' $insertFilePathHere
cat $csv_filename| head -n 1 | tr ',' "\n" | cat -n
$5
is where the timestamp is, and it’s got milliseconds (that’s what substr is for). It will print simply column $5
; adjust columns as needed.
awk -F, '{print $5=strftime("%c",substr($5,1,10))}
var
; like when searching for variables in a terraform templategrep -oE '\bvar.*\b'
main.tf
for i in $(grep -oE '\bvar.*\b' main.tf | sed 's/var\./\n/g' | sed '/^$/d' | sed 's/[\[|\$|\"|\{|\}]//g' | sort | uniq); do grep $i ./variables.tf >/dev/null 2>&1 || echo "variable $i not declared in variables.tf"; done
grep -oE 'i-[0-z]{0,17}'
Note That’s for instance-ids
diff <(command 1) <(command 2)