有关编辑文件中的行的帮助 [英] Help on Edit a line in a File

查看:60
本文介绍了有关编辑文件中的行的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我想知道如何编辑或删除文件中的一行。该行可以是文件中的任何位置。


有任何想法请。


谢谢。


问候

Rajiv

Hi to all,

I want to know how do i do edit or delete a line from file.The line can be any where in the file.

Is any Idea Please.

Thanks.

Regards
Rajiv

推荐答案

嗨Rajiv,


你必须提供更多关于你要做什么的细节..但我想你应该去寻找与正则表达式匹配的模式。


Mehjabeen
Hi Rajiv,

You have to provide more details about what you are trying to do.. But I guess you should go for pattern matching with regular expressions.

Mehjabeen



嗨拉吉夫,

你必须提供更多关于你要做什么的细节..但我想你应该去寻找与正则表达式匹配的模式。


Mehjabeen
Hi Rajiv,

You have to provide more details about what you are trying to do.. But I guess you should go for pattern matching with regular expressions.

Mehjabeen



谢谢你mehj123


让我解释一下。我有一个文件有一组名称和年龄。所以我有一个输入名称''Rajiv''如果它在文件的任何一行匹配,我想编辑该行到其他一些细节。


但我使用Tie :: File Module解决了这个问题。


Thank U mehj123

Let me explain.I have a file has set of name and age.So i have an input name ''Rajiv'' if it is match in any line in the file, i want to edit that line to some other details.

But i have solved this problem using Tie::File Module.

展开 | 选择 | Wrap | 行号


直到你开始回复你所有的线程,我个人不会再帮你了。这是我个人的政策,而不是本网站的政策。
http://www.thescripts.com/forum/thread752418.html (未经您重播)
http://www.thescripts.com/forum/thread750611。 html (被你遗弃)
http://www.thescripts.com /forum/thread749769.html (未经您的拒绝和放弃)
http: //www.thescripts.com/forum/thread746910.html (被您抛弃)
http://www.thescripts.com/forum/thread746423.html (未兑现和放弃)


列表继续。
Until you start replying to all your threads I personally am not going to help you anymore. That is my own personal policy, not the policy of this website.
http://www.thescripts.com/forum/thread752418.html (unreplied by you)
http://www.thescripts.com/forum/thread750611.html (abandoned by you)
http://www.thescripts.com/forum/thread749769.html (unreplied and abondoned by you)
http://www.thescripts.com/forum/thread746910.html (abandoned by you)
http://www.thescripts.com/forum/thread746423.html (unreplied and abandoned)

the list goes on.


这篇关于有关编辑文件中的行的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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