in reply to Removing files listed in another file

I'm not sure I'd want to unlink the contents of a packlist blindly...but, for the same # of chars this seems a little clearer:
perl -ne 'chomp;unlink' < file;rm file

Replies are listed 'Best First'.
Re: Re: Removing files listed in another file
by hasant (Initiate) on Jul 01, 2001 at 20:57 UTC
    You don't even need the chomp there, the -l will do it
    (only with -n or -p).

    % perl -lne 'unlink' < file

    Good for removing only the the list (not the container)
    Thanks.

    s::a::n