Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • When I run the preview command, I get one line with "rm". When I run the actual command, I get an error message about missing arguments for rm. Do I need special syntax to use the results from ls | egrep in the xargs input? Commented Apr 30, 2014 at 14:16
  • @Nathan you must cd to your directory first. No special syntaxt. ls provides the directory file names, egrep -vf filelist filter your 50 file names. I'm afraid you deleted all your files. Commented Apr 30, 2014 at 14:27
  • @Emamanuel I'm running the command from the directory that contains files to be deleted. Commented Apr 30, 2014 at 14:31
  • @Nathan are all your files deleted ? Commented Apr 30, 2014 at 14:31
  • no, they're still there. Commented Apr 30, 2014 at 14:32