guys I need help, I have test.txt and i want my script to scan the file and replace word: Blah by BLAH2 so how can I do it??
alias replace {
var %i 1
while ($lines(test.txt) >= %i) {
<<<WHAT HERE>>>
}
inc %i
}
A TG007 community discussion started by DreaM.
guys I need help, I have test.txt and i want my script to scan the file and replace word: Blah by BLAH2 so how can I do it??
alias replace {
var %i 1
while ($lines(test.txt) >= %i) {
<<<WHAT HERE>>>
}
inc %i
}
alias replace {
var %i 1
while ($lines(mirc.ini) >= %i) {
var %r = $read(mirc.ini,%i)
if (blah isin %r) /write -l $+ %i mirc.ini $replace(%r,blah,blah2)
inc %i
}
}
thank you gate and that is the code I am using now and I know well what I am trying to change in mirc.ini so dont worry guys lol but I have a problem:
[clicks] status=/lusers ......=/channel . .
This / stops the alias from working and checking the whole file so can anyone explain to us why / stops the scaning and what is the solution??
Sign in to reply or start a new topic where your account has permission.