I am kind of new to nerdy usage of Linux. I am playing around with pipelining at the moment. Can anyone tell me why this don't works:
ls | grep 2 | rm
(I tried to delete all files containing a 2 in their names)
the ls | grep 2
part is working ( it returns all file names with a 2 in them )
why can't I pipeline these names now to rm
to delete these files?
thanks four ur help in advance :)