I wanted to see the names of all Vim source files in my ~/.vim directory. Because I use pathogen and submodules, there are a lot of .git directories under there, and I didn't want to list those. So I learned how to use the find command's 'not' operator, and it was easy:
find . \! -path "*.git*"
If you're curious, the reason I wanted to do this was to see if Vim authors typically use dashes or underscores to separate words in filenames. The answer: dashes (usually).
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment