Skip to content

Instantly share code, notes, and snippets.

@gonaumov
Created November 18, 2020 06:48
Show Gist options
  • Save gonaumov/8c803e6134c52007f14ab3a470157f38 to your computer and use it in GitHub Desktop.
Save gonaumov/8c803e6134c52007f14ab3a470157f38 to your computer and use it in GitHub Desktop.
ls -A1R src/components/ | egrep '.tsx$' | awk 'BEGIN { printf "Components in the code base:\n"; printf ("N component-file recommended-id\n")} {printf(NR);printf(" %s ",$1); printf(" "); gsub(/.tsx$/,""); gsub(/\./,"-"); print $0} END {print "Total", NR}' > report.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment