Ai
5 Star 2 Fork 3

SpacemiT Buildroot SDK/mpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
remove_space_end_of_line.sh 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
James Deng 提交于 2024-03-01 19:30 +08:00 . Update for v1.0alpha2
#!/bin/bash
###
# Copyright 2022-2023 SPACEMIT. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file.
#
# @Author: David(qiang.fu@spacemit.com)
# @Date: 2023-02-02 10:05:09
# @LastEditTime: 2023-02-02 16:22:05
# @Description: code style optimization, remove spaces at the end of line.
###
find . -name '*.h' | cut -d : -f 1 | uniq | xargs -I{} -t sed -i -e 's///g' {}
find . -name '*.c' | cut -d : -f 1 | uniq | xargs -I{} -t sed -i -e 's///g' {}
find . -name '*.cpp' | cut -d : -f 1 | uniq | xargs -I{} -t sed -i -e 's///g' {}
find . -name '*.cc' | cut -d : -f 1 | uniq | xargs -I{} -t sed -i -e 's///g' {}
find . -name '*.hh' | cut -d : -f 1 | uniq | xargs -I{} -t sed -i -e 's///g' {}
find . -name '*.h' | cut -d : -f 1 | uniq | xargs -I{} -t sed -i -e 's/ *$//g' {}
find . -name '*.c' | cut -d : -f 1 | uniq | xargs -I{} -t sed -i -e 's/ *$//g' {}
find . -name '*.cpp' | cut -d : -f 1 | uniq | xargs -I{} -t sed -i -e 's/ *$//g' {}
find . -name '*.cc' | cut -d : -f 1 | uniq | xargs -I{} -t sed -i -e 's/ *$//g' {}
find . -name '*.hh' | cut -d : -f 1 | uniq | xargs -I{} -t sed -i -e 's/ *$//g' {}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/spacemit-buildroot/mpp.git
git@gitee.com:spacemit-buildroot/mpp.git
spacemit-buildroot
mpp
mpp
k1-bl-v2.2.y

搜索帮助