Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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 ?

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 !!!

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
$

![]() |
Is it a good laptop
|
Proxy server suddenly not...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |