I'm generating ctags using something like the following line
find -iname '*.[hc]' -exec ctags -a --sort=no {} +
The result is that tags are not sorted. For that I'm using
sort -u -o tags tags
What I'm curious about, is it possible to do all of this in find
? In other words, can I instruct find
to use --sort=no
for all but last invocation of ctags, when it would use --sort=yes
?
The current way is sufficient (and ctags
internally calls sort -u -o $TAGFILE $TAGFILE
anyway) but I'm curious if this is possible.