mIRC Home    About    Download    Register    News    Help

Print Thread
remove line from file? #13733 02/03/03 02:56 AM
Joined: Jan 2003
Posts: 237
X
xrn0id Offline OP
Fjord artisan
OP Offline
Fjord artisan
X
Joined: Jan 2003
Posts: 237
how?



;Check for Life

if (%life == $null) {
goto getlife
}
Re: remove line from file? #13734 02/03/03 03:24 AM
Joined: Dec 2002
Posts: 83
A
acemiles_ed Offline
Babel fish
Offline
Babel fish
A
Joined: Dec 2002
Posts: 83
/filter -ffcg file1.txt file2.txt /\S/

Re: remove line from file? #13735 02/03/03 03:54 AM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Examples:
Code:

/write -dl1 file.txt - removes the first line.
/write -ds"hello" file.txt - removes the first line that begins with "hello".
/write -dw"*test*" file.txt - removes the first line that matches the *test* wildcard.

For more information type /help /write.