🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ca.unix
Article #145

Re: Find a string length

#145
From: Bernard Chandler
Date: Fri, 09 Jun 2000 00:00
27 lines
1220 bytes
ulianov@csm.ro wrote:

> find -name *whatever-name* | while read FILE
>  do
>    A=`strings $FILE | cut -c31- | sort -u`;
>    if [ ! -z $A ]; then
>      echo $FILE
>    fi
>  done
>
> Hope this will work,
> Vladimir
>
> Deborah Lorraine wrote:
>
> > I have a group of files that I want to test if they contain any strings
> > over 30 characters long...does anyone know of a way to do that?
> > Thanks,
> > Debi
> > dlorraine@ucdavis.edu

that is a nice piece of syntax. the logic is even better.


--
Bernie Chandler
http://www.nationwide.net/~bernie
Technical Details
Message-ID: <3940EFD3.9F9B45ED@nationwide.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39400AE5.D4042589@ucdavis.edu> <394035EE.7E0F86AE@csm.ro>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10183f,3cffa2d3aac37ef6
X-Google-Attributes: gid10183f,public
From: Bernard Chandler <bernie@nationwide.net>
Subject: Re: Find a string length
Date: 2000/06/09
Message-ID: <3940EFD3.9F9B45ED@nationwide.net>
X-Deja-AN: 633033538
Content-Transfer-Encoding: 7bit
References: <39400AE5.D4042589@ucdavis.edu> <394035EE.7E0F86AE@csm.ro>
X-Accept-Language: en,de,de-DE,zh,zh-CN,zh-TW,ja,ko
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: newsabuse@supernews.com
Organization: Posted via Supernews, http://www.supernews.com
MIME-Version: 1.0
Newsgroups: ca.unix