a technical notebook
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

  1. <h1>Tuesday, January 20</h1>
  2. I wanted to figure out where I used a library in existing code.
  3. This is what I wound up doing in zsh:
  4. brennen@exuberance 11:48:07 /home/brennen/code $ for foo in `ls -f`; do; if [[ -d $foo/.git ]]; then cd $foo; echo '--' $foo '--'; git grep 'IPC::System::Simple'; cd ~/code; fi; done
  5. -- thcipriani-dotfiles --
  6. -- sfe-sysadmin --
  7. -- pi_bootstrap --
  8. -- bpb-kit --
  9. -- batchpcb --
  10. -- according-to-pete --
  11. -- meatbags --
  12. -- sfe-paleo --
  13. -- instruct --
  14. -- sfe-openstack --
  15. -- YouTube_Captions --
  16. -- batchpcb_rails --
  17. -- userland-book --
  18. slides/render.pl:use IPC::System::Simple qw(capturex);
  19. -- sfe-custom-queries --
  20. -- brennen-sparklib-fork --
  21. -- tilde.club --
  22. -- display --
  23. -- sfe-chef --
  24. -- xrectsel --
  25. -- git-feed --
  26. git-feed:use IPC::System::Simple qw(capturex);
  27. sample_feed.xml: use IPC::System::Simple qw(capturex);
  28. sample_feed.xml:+use IPC::System::Simple qw(capturex);
  29. -- reddit --
  30. -- rtd-tools --
  31. -- sparkfun --
  32. -- mru --
  33. Lame-ish, but I'm perpetually forgetting shell loop and conditional syntax, so
  34. it seems worth making a note of.