Ask a Question related to PERL Beginners, Design and Development.
-
John Schmerold #1
Regex command to remove deleted emails
I'm trying to use the following to remove deleted emails (deleted emails
have file names that end in ",ST"):
rm -f $(find /home/vmail Maildir | grep ,ST)
This works well for the most part, however some files don't get deleted,
I suspect because of their length or characters in the pathname. For
example, following was not deleted:
/home/vmail/jam/Maildir/.Personal items.Saved
mail/cur/1060014026.M14682P23099V0000000000000904I00105790_ 15.mail.lp.com,
S=33883:2,ST
Anyone know of a way to include a delimiter or other function to force
the removal of files such as one above?
John Schmerold Guest
-
remove command history
If I press button "up" I can see all comand which I write before. How I can clear this command history under suse linux 8.0? -
rm $( locate Maildir | grep ,ST ) will not work to remove deleted emails
I have a number of Outlook XP users that don't purge their deleted emails, so I want to remove them myselve with following regex command: rm $(... -
[SESSION] Session variable deleted prior to command?
Hi all, I'm developing a database system on my local computer (OS/version details at bottom) with a simple user authentication using sessions. On... -
How to destroy (remove from memory) created with new command members
I create (for example) 50 bitmap members with new command are they removed from memory or do i need do do it myself ??? if YES then - how to... -
how to remove a programe from the add/remove list manually
i am using winXP home, i just remove a programe from the start menu(start>>all programes>>name of the programe>>uninstall),but the programe name is... -
Tim Johnson #2
RE: Regex command to remove deleted emails
I haven't had a chance to test this, but how about:
####################################
use strict;
use warnings;
use File::Find;
find(sub{unlink if /,ST$/},"/my/directory/");
####################################
-----Original Message-----
From: news on behalf of John Schmerold
Sent: Wed 1/28/2004 9:44 PM
To: [email]beginners@perl.org[/email]
Cc:
Subject: Regex command to remove deleted emails
I'm trying to use the following to remove deleted emails (deleted emails
have file names that end in ",ST"):
<snip>
Tim Johnson Guest



Reply With Quote

