使用批处理脚本删除文件末尾的一个分号 [英] Deleting one semicolon in the end of a file using Batch script

查看:70
本文介绍了使用批处理脚本删除文件末尾的一个分号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文件结构在下面

I have a file which structure is below

名称:a.dat

Value : 
abcde;
vdeerf;   
;

我只想删除在文件末尾输入的最后一个分号。

I want to delete only the last semicolon entered in the end of the file.

我需要一批脚本这样做,你能帮我吗?

I need a batch script to do this, Can you guys please help me ?

谢谢,

Jitu

            

            

推荐答案

我强烈建议您远离批处理文件。 批处理文件已经过时了近20年。 它们实际上使管理变得更难,更不可靠。 嘿!毕竟这是21世纪。
I highly recommend moving away from batch files.  Batch files have been obsolete for almost 20 years now.  They actually make management harder and more unreliable.  Hey! It's the 21st century after all.


这篇关于使用批处理脚本删除文件末尾的一个分号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆