Skip to main content
deleted 3 characters in body
Source Link

I'm trying to pipe grep output to rm, but it outputs useless stuff. Is any switch required for rm? Or can rm can be provided a regexp directly?

$ ls | grep '^Dar' |rm'^\[Daruchini'|   rm: missing operand Try `rm --help' for more information. 

rm: missing operand Try `rm --help' for more information.

I'm trying to pipe grep output to rm, but it outputs useless stuff. Is any switch required for rm? Or can rm can be provided a regexp directly?

$ ls | grep '^Dar' |rm   rm: missing operand Try `rm --help' for more information. 

I'm trying to pipe grep output to rm, but it outputs useless stuff. Is any switch required for rm? Or can rm can be provided a regexp directly?

ls | grep '^\[Daruchini'| rm 

rm: missing operand Try `rm --help' for more information.

formatting; grammar; inserted actual error message
Source Link
Gilles 'SO- stop being evil'
  • 865.9k
  • 205
  • 1.8k
  • 2.3k

i'mI'm trying to pipe grepgrep output to rmrm, but it outputs useless stuffz..stuff.any Is any switch in rm is required for rm? or rmOr can rm can be provided a regexp directly? `$ls|grep '^Dar' |rm $try rm --help``

$ ls | grep '^Dar' |rm rm: missing operand Try `rm --help' for more information. 

i'm trying to pipe grep output to rm, but it outputs useless stuffz...any switch in rm is required ? or rm can be provided regexp directly? `$ls|grep '^Dar' |rm $try rm --help``

I'm trying to pipe grep output to rm, but it outputs useless stuff. Is any switch required for rm? Or can rm can be provided a regexp directly?

$ ls | grep '^Dar' |rm rm: missing operand Try `rm --help' for more information. 
Source Link

giving grep output to rm

i'm trying to pipe grep output to rm, but it outputs useless stuffz...any switch in rm is required ? or rm can be provided regexp directly? `$ls|grep '^Dar' |rm $try rm --help``