🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ca.unix
Article #144

Re: Find a string length

#144
From: ulianov
Date: Thu, 08 Jun 2000 00:00
18 lines
1056 bytes
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
Technical Details
Message-ID: <394035EE.7E0F86AE@csm.ro>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39400AE5.D4042589@ucdavis.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10183f,3cffa2d3aac37ef6
X-Google-Attributes: gid10183f,public
From: ulianov@csm.ro
Subject: Re: Find a string length
Date: 2000/06/08
Message-ID: <394035EE.7E0F86AE@csm.ro>
X-Deja-AN: 632834128
Content-Transfer-Encoding: 7bit
References: <39400AE5.D4042589@ucdavis.edu>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@sprint.ca
X-Trace: newscontent-01.sprint.ca 960509564 209.148.255.222 (Thu, 08 Jun 2000 20:12:44 EDT)
Organization: the Cotfas family
MIME-Version: 1.0
NNTP-Posting-Date: Thu, 08 Jun 2000 20:12:44 EDT
Newsgroups: ca.unix