Computing.Net > Forums > Networking > show the ungrep file names

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

show the ungrep file names

Reply to Message Icon

Name: arulactive
Date: August 27, 2009 at 04:42:36 Pacific
OS: sun solaris
CPU/Ram: 12
Product: Sun microsystems Sun fire v100 550mhz/512kb l2 cache/256mb memory/1x80gb/cd-rom/lan/solaris 8, java system web server
Subcategory: General
Tags: solaris
Comment:

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 ?



Sponsored Link
Ads by Google

Response Number 1
Name: paulsep
Date: August 27, 2009 at 17:12:45 Pacific
Reply:

find /path_to_search ! -iname 'search_string'

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


0

Response Number 2
Name: arulactive
Date: August 28, 2009 at 10:03:50 Pacific
Reply:

hi paulsep,

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


0

Response Number 3
Name: paulsep
Date: August 28, 2009 at 11:28:15 Pacific
Reply:

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


0

Response Number 4
Name: arulactive
Date: August 29, 2009 at 13:47:20 Pacific
Reply:

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
$


0
Reply to Message Icon

Related Posts

See More


Is it a good laptop Proxy server suddenly not...



Post Locked

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


Go to Networking Forum Home


Sponsored links

Ads by Google


Results for: show the ungrep file names

what is the host file? www.computing.net/answers/networking/what-is-the-host-file/2621.html

Reading a part of file name www.computing.net/answers/networking/reading-a-part-of-file-name/35964.html

IP Addressing www.computing.net/answers/networking/ip-addressing/8875.html