HP3000-L Archives

June 2007, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Lars Appel <[log in to unmask]>
Reply To:
Date:
Sat, 2 Jun 2007 12:48:38 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (21 lines)
If you don't have MPEX and don't want to write a command file,
then you might also use the POSIX Shell's find utility for this:

  find /your/dir -type f -size 0 -exec ls -l {} ";"

The above example uses "ls -l" instead of "rm" to be safe ;-)

Invoking from the MPE prompt (for example inside a batch job)
should be something similar to the two flavours below (which I
have not tested right now, so your mileage may vary)...

  :xeq /bin/find '/your/dir -type f -size 0 -exec ls -l {} ";"'

  :xeq /bin/sh &
  :  "-c 'find /your/dir -type f -size 0 -exec ls -l {} \; '"

Regards, Lars.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2