3 ms·
I'm struggling to find any information on this command (it's not an easy name to search for!) Do you have any links you could share please?
by joosters 11y ago
I'm struggling to find any information on this command (it's not an easy name to search for!) Do you have any links you could share please?
- kps 11y agoApologies, I forgot to include a link: The toolkit is now at https://github.com/att/ast https://github.com/att/ast since AT&T laid off the group a couple years ago. About half the package consists of evolutions of traditional Unix commands. The parts I use regularly are ksh and tw. tw ('tree walk') is sort of a 'find --exec' replacement with a C-like selector syntax. It's a bit verbose, so for interactive use I generally set up project-specific shell aliases with selection expressions, e.g. alias cctw=$'tw -e "select: return (type == REG) && ((name == \'*.c\') || (name == \'*.h\') || (name == \'*.cpp\') || (name == \'*.cc\') || (name == \'*.h\') || (name == \'*.hpp\') || (name == \'*.mm\') || (name == \'*.inc\'));" ' and then use those, e.g. cctw egrep -w MyIdentifier
- joosters 11y agoThanks, this looks interesting!