Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi!
As the subject says, I'd like to add a " /" to the end of a line containing a specific keyword. For instance:
in.txt:
a=1,b=2,c=3
d=4,keyword=5,f=6
g=7out.txt:
a=1,b=2,c=3
d=4,keyword=5,f=6 /
g=7where keyword is the keyword. I take it sed is the right tool, but I haven't seen an example quite like this online. Ideally, I'd like to insert this into a perl script, in case this changes the sed syntax or the same thing can be done in perl w/o sed. Thanks for your help.
--Kevin

![]() |
Time calculation
|
getting 9 char from a fil...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |