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

一些 dirty 、useful 脚本 #3

Open
jiacai2050 opened this issue Jan 8, 2016 · 0 comments
Open

一些 dirty 、useful 脚本 #3

jiacai2050 opened this issue Jan 8, 2016 · 0 comments
Labels

Comments

@jiacai2050
Copy link
Owner

shell

# 将 py 文件中的 \t 替换为四个空格
find . -name '*.py' -exec sed -i 's/\t/    /g' {} +

find ~/logs/ -type f -mtime +3 -name \*.log -delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant