3
我想跑的文本文件下面的脚本正在致力于:你可以在提交颠覆时修改文本文件吗?
# Send the commands H and w to ed
# ed will append newline if the file does not end in one
printf "%s\n" H w | ed -s $1
# Strip trailing whitespace
sed -i 's/[ \t]*$//g' $1
# Convert tabs to 4 spaces
sed -i -r "s/\t/ /g" $1
我看到颠覆有一个开始提交和预提交挂钩,但我不能跟着,我怎么可以处理文档带有上述脚本的文本文件。