help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it possible to move a column where column on right is variable wi


From: Tomas Nordin
Subject: Re: Is it possible to move a column where column on right is variable width
Date: Tue, 16 May 2017 23:56:44 +0200

> Here is a suggestion using GNU sed
>
> C-x h          mark-whole-buffer
> C-u M-|        shell-command-on-region (with prefix to output in buffer)
>
> then yank this as the shell command
> sed -E 's/(.+)\t(.+)/\2\t\1/'

and to spare your finger muscles, just yank this into the shell

sed -E 's/(.+)\t(.+)/\2\t\1/' LSE.txt > LSE-swap.txt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]