mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2005
Posts: 122
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Oct 2005
Posts: 122
hey i jus need a simple script where it will search a file for a specific word then delete the line, i wuz tryin to use
Code:
alias del {
/write -dw# $+ $2 files.txt
}


but not workin

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
write -dw $+ $2 files.txt

Joined: Oct 2005
Posts: 122
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Oct 2005
Posts: 122
ok imhavin some probs i dunno why it wont work

the script -
Code:
alias delfile {
  var %x $input(File Name To Delete,eo,File To Delete)
  write -dw $+ %x files.txt
}


The File
Code:
4,1 !!!Custom Software Design!!!
9,1 cheaper 2 - 11,1Please Pay To: 8,1zzz


I typed it /delmovie the input box came up
i typed in Cheaper, nothing happened, it remained

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
You need to type *cheaper* (note the *s), not cheaper.

You could make the script add the *s automatically by using this:

Code:
alias delfile {
  var %x = $input(File Name To Delete,eo,File To Delete)
  write $+(-dw*,%x,*) files.txt
}


Link Copied to Clipboard