var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Need to rm based on grep output - correct syntax?
I'm trying to do something along the lines of the following:
1. I need to find files in a certain directory beginning with a certain name that have a certain text pattern:
2. I need to delete the results
$ egrep 'text pattern' 1151*
How do I best accomplish this? I've tried a few code snippets but I am getting syntax errors.
Thanks in advance.
for x in `grep -l "text pattern" file*`; do rm -f $x; done