On Thu, Nov 19, 2009 at 7:43 AM, Tony Rick <[email protected]> wrote:


>
> 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
>

Also, from the command line, assuming n is the column number of interest
(starting from 1)

cut -c 1-(n-1),(n+1)- oldfile > newfile

read
"cut dash c 1 dash n minus 1 comma n plus 1 dash oldfile-in to newfile out"

so if the column of interest is 17, the command is

cut -c 1-16,18- oldfile > newfile

- tony

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

Reply via email to