Renaming files

2018-03-20  本文已影响3人  shuff1e
Renaming files                                          *rename-files*

Say I have a directory with the following files in them (directory picked at
random :-):       

buffer.c
charset.c
digraph.c
...

and I want to rename *.c *.bla.  I'd do it like this:

        $ vim
        :r !ls *.c
        :%s/\(.*\).c/mv & \1.bla
        :w !sh
        :q!

==============================================================================
image.png
上一篇 下一篇

猜你喜欢

热点阅读