On Thu, Mar 10, 2011 at 3:49 PM, Gene Kwiecinski <gkwiecin...@dclab.com>wrote:
> >Hi, I have a question. I have a very big directory/subdirectory listing > >that has been outputted to a file. > >I would like to delete all the dot ( . ) and dot-dot ( .. ) directories, > >so that I just have a listing of the "real" directories. > > Ummm, use 'ls -A' instead of 'ls -a'? > > Just seems easier to me... :D > > You mean delete directories line end with . or .. ? If yes, you can try this command :%s/\.\{1,2}\s*$// This will delete . or .. end of line. Check out: :h :sub Michael -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php