使用.bat脚本删除除注释之外的文件内容

时间:2016-05-23 08:42:23

标签: batch-file cmd batch-processing

我有一个.properties文件格式为

####
#These are the comments
####

this is the content

我想删除除此文件注释之外的所有内容。

1 个答案:

答案 0 :(得分:3)

findstr /b "#" "properties.properties" >new.properties

试试这个。