Friday, April 8, 2016

How to use a command to many files?

There is a command, it deletes non-ASCII characters.
g/[^\x00-\xff]/d
"
1
00:00:01,300 --> 00:00:05,920
玄黄端现,太极混沌如鸡蛋,随着轰的一声,
In the beginning there was darkness... And then... BANG!
----->
1
00:00:01,300 --> 00:00:05,920

In the beginning there was darkness... And then... BANG!
"

I want to use this command to many files(fileA.src, fileB.src), how can I do it?
for example:
folderA/fileA.src
folderB/fileB.src

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: