Created
October 20, 2017 01:38
-
-
Save ishideo/6b9dc4e981b8c467e8a98b46efb46f47 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
vim -X -u NONE -c ':1 | /abc' -c '/xyz' -c '/123' -c 'normal! $vT y' -c ':redir! >> input.txt | silent! echo @0 | redir END | :q!' output.txt | |
vim -X -u NONE -c ':redir! >> output.txt | silent! echon "\n" | redir END | :q! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment