On Wed, Nov 18, 2009 at 5:14 PM, Rich Shepard <[email protected]>wrote:

>   I thought that I had saved the instructions for this from several years
> ago, but apparently I did not.
>
>   I need to remove double quotes from a specific column for all 3200 lines
> in a file. I know that I can do a regex search and replace for the
> beginning
> of each line, but the quotes I need to remove are in the interior. It seems
> to me that there is a way to block a vertical column and manipulate text
> within that marked block, but I no longer remember how to do this.
>
>   Pointers or clues are appreciated.
>
> Rich
> _______________________________________________
> PLUG mailing list
> [email protected]
> http://lists.pdxlinux.org/mailman/listinfo/plug
>

Looks like Rogan is an emacs kind of person.  Maybe you are, too. I'm a vim
guy, myself. There it's
1. cursor to column of interest
2. ctrl-v (visual block mode)
3. motion commands to select lines
4. edit command of choice (d for delete, s fro replace, etc)

For my file of 23575 lines:
1. cursor to column 5.
2. ctrl-v
3. 23575j
4. d

et voila!

Of course, if you are not vim-savvy, there could be a learning curve.


- tony
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to