show the ungrep file names

Sun microsystems Sun fire v100 550mhz/51...
August 27, 2009 at 04:42:36
Specs: sun solaris, 12
Hi,
I want to get the file names under a directory that doesn't have the search string which i'm searching. I tried with grep -vl "searchstring", but that doesn't work. By roundabout method I can do this using a script, but can this be done in a single line ?


See More: show the ungrep file names

Report •


#1
August 27, 2009 at 17:12:45
find /path_to_search ! -iname 'search_string'

Please send a reply, if you solved the problem !!!


Report •

#2
August 28, 2009 at 10:03:50
hi paulsep,

I'm using solaris, the iname option doesn't work.Any other way to do this?.


Report •

#3
August 28, 2009 at 11:28:15
So simply try the same but use -name instead of -iname.

find /path_to_search ! -name 'search_string'

Please send a reply, if you solved the problem !!!


Report •

Related Solutions

#4
August 29, 2009 at 13:47:20
that doesn't work..pls find the results
$grep wnla *
perl_time_list:perl -wnla -e ' ($f1, $f2, $f3, $f4, $f5, $f6, $f7, $f8, $f9, $f10)=@F;
$find . ! -name "wnla"
.
./test1
./in.dat
./temp1
./ls_nawk
./count_days
./perl_time
./perl_time_list
./temp1.bak
$

Report •


Ask Question