#!/bin/bash
# measure.sh FILE... : size of each instruction file.
# tokens = rough estimate (characters / 4). Claude's exact tokenizer isn't on this box.
printf "%-20s %6s %7s %8s  %s\n" file lines chars ~tokens note
for f in "$@"; do
  l=$(wc -l < "$f"); c=$(wc -m < "$f"); t=$(( (c + 3) / 4 ))
  note=""; [ "$l" -gt 200 ] && note="over 200 lines"
  printf "%-20s %6s %7s %8s  %s\n" "$f" "$l" "$c" "$t" "$note"
done
