EndPointCorp / end-point-blog

End Point Dev blog
https://www.endpointdev.com/blog/
17 stars 65 forks source link

Comments for Two quick tips: egrep & SQL dumps, VIM and deleting things that don't match #188

Open phinjensen opened 6 years ago

phinjensen commented 6 years ago

Comments for https://www.endpointdev.com/blog/2009/08/two-quick-tips-egrep-sql-dumps-vim-and/ By Selena Deckelmann

To enter a comment:

  1. Log in to GitHub
  2. Leave a comment on this issue.
phinjensen commented 6 years ago
original author: David Fetter
date: 2009-08-20T18:38:01-04:00

You can use \r instead of ^V^M on the right side of a s///. It's a little quicker to type, at least for me :)

phinjensen commented 6 years ago
original author: Andrew
date: 2009-08-21T09:46:10-04:00

i just use sed or occasionally perl for tasks like this.

sed is often overlooked these days, but this is precisely the sort of task it's good at.

phinjensen commented 6 years ago
original author: Selena Deckelmann
date: 2009-08-24T15:59:39-04:00

David: ^M will catch EOL characters from all platforms, so I tend to use it instead of '\r'. But yeah, in this case that'd work.

Andrew: I tend to use perl, but not usually sed. I was just trying to learn a little more vim.