in reply to Remove a line from a file using perl one liner

Depends on the OS, but on *NIX,
perl -ne 'next if m,^Alias /icons/,; print' < one.txt > tmp.txt && mv +tmp.txt one.txt
or, if you're feeling brave...
perl -i -ne 'next if m,^Alias /icons/,; print' one.txt
should do the trick.

A user level that continues to overstate my experience :-))