Oops, forgot the xargs ...
cat file | xargs rm
Philippe Moutarlier <[EMAIL PROTECTED]> writes:
> you can try something like
>
> cat file | rm
>
> (be sure not to force the rm when you try this though ....)
>
> Philippe
>
>
>
> Erik <[EMAIL PROTECTED]> writes:
>
> > Hi,
> >
> > I want to remove some files in a directory. I ahve a text file with the
> > names of the files that i want to delete. Is there a command I can
> > issue that will delete the files listed in the file i have?
> >
> > Thanks,
> >
> > erik
> >
> >
> > --
> > To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> > as the Subject.
>
>
> --
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.