Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run in batch mode #3

Open
asmwarrior opened this issue Jul 22, 2022 · 2 comments
Open

run in batch mode #3

asmwarrior opened this issue Jul 22, 2022 · 2 comments

Comments

@asmwarrior
Copy link

For a reference, this tool: https://github.com/amrali-eg/EncodingChecker

I hope your tool can scan the folder and recursive to its sub-folders, and find the source files(by masks, such as *.cpp and *.h), and detect the source code encoding, and change the encoding if its encoding is not the output encoding.

By this way, we can scan a project, and see which file has wrong encoding, and fix those files.

Thanks.

@gonejack
Copy link
Owner

Hi, @asmwarrior

This tool should be simple and tiny, for directory walking you could do a combination with find that looks like https://unix.stackexchange.com/questions/12902/how-to-run-find-exec

@asmwarrior
Copy link
Author

asmwarrior commented Jul 22, 2022

Hi, thanks for the reply.

When looking at this document: Find - Search for text - Windows CMD - SS64.com

It looks like Find command does not support wildcard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants