Using UNIX find to generate TAGS files when the $CWD contains a space or special character
Posted
by snim2
on Stack Overflow
See other posts from Stack Overflow
or by snim2
Published on 2010-05-24T00:55:56Z
Indexed on
2010/05/24
1:01 UTC
Read the original article
Hit count: 355
The following UNIX one-liner looks for Python files below the CWD and adds them to a TAGS file for Emacs (or we could do the same with Ctags).
find . -name *.py -print | xargs etags
This breaks if the CWD has a space or other unusual character in its name. -print0
or -ls
don't seem to help, in spite of what man find
says. Is there a neat way around this?
© Stack Overflow or respective owner