Text editor with graphical delimited column select for delete - suggestions? ; jor
Luis Paulo
luis.barbas at gmail.com
Sat Jun 19 22:36:00 UTC 2010
On Sat, Jun 19, 2010 at 3:24 AM, giovanni_re <john_re at fastmail.us> wrote:
> Is there a text editor, which allows some easy way to process many lines in a text file, to delete off parts of the lines, according to some specification? It should have menu items for the selection of what to delete. The purpose for this is so that one doesn't need to learn a command syntax, but merely select from a menu.
>
> One kind of command would be 'delete from the first character up to the last "/" in a line'.
> also: Delete from the end of the line back to the first "_" character.
>
> Ex: Applicable to a file with lines like these:
> wget -c http://archive.canonical.com/ubuntu/pool/partner/s/sun-java6/sun-java6-bin_6.20dlj-1ubuntu3_amd64.deb
> wget -c http://us.archive.ubuntu.com/ubuntu/pool/main/a/antlr/libantlr-java_2.7.7-15ubuntu1_all.deb
>
>
> Perhaps a graphical using mouse pointer column select, where the column was not by character position, but by # of non alpha characters (like, -/._ etc). - with a "start this # of delimiters in" setting, so, ex, one could prune down to just the package names, like "sun-java6-bin".
>
> Thanks :)
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
something like
$ sed 's/.*\///g' conffiles
will give just the file names.
I'm thinking that if you put it in as a shell script, some editors
allow to run external commands on the text (ex. bluefish), and that
may work for you. At least if it is to be applied to the all file at
once, didn't find a way to run it just on the selection.
If you want to try this I'll be happy to tell you exactly how to do it
on bluefish.
Bluefish also have search an replace with regex, POSIX and PERL type
(that works on selection, if needed).
Regards
Luis
More information about the ubuntu-users
mailing list