12-22-2012
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Ok, so I just got charged with the task of deleting some 300 user folders in a FTP server to free up some space. I managed to grep and cut the list of user folders to delete into a list of one user folder per line.
Example:
bob00
jane01
sue03
In the home folder, there are folders a-z, and... (5 Replies)
Discussion started by: b4sher
5 Replies
2. Shell Programming and Scripting
Hi guys,
I´m trying to replace the 2 last folders name in a list of directories with a new string, but I´m don´t know which regex to apply.
Directories list:
C/my user/documents/games & music
C/my user/documents/photos 09-24-2008
C/my user/settings/config ?1_2
* The last folder may have... (11 Replies)
Discussion started by: cgkmal
11 Replies
3. UNIX for Dummies Questions & Answers
I have a ZIP folder ( folder.zip or folder.jar ) which contains , lets say 3 directories under it ( directory1, directory2, directory3).
How can i unzip the contents of directory2 ONLY ? I do not have to unzip the complete folder.
TIA. (2 Replies)
Discussion started by: Sheel
2 Replies
4. Shell Programming and Scripting
Hi,
I have a folder name XX and a directory N:.
Now I want to find the folder on that directory and print the path.
I tried with grep "XX" N:
but also search for files named as XX, but I want to find onlt folder and print.
please help me..
Thanks in advance (12 Replies)
Discussion started by: arup1980
12 Replies
5. UNIX for Dummies Questions & Answers
Hi there!:o
I have a question if I have a directories ~/MyFolder/Files/PersonalFiles/databases/food/tomato
~/MyFolder/Files/PersonalFiles/databases/items/cup
and I want my program to output food/tomato and items/cup, i.e. everything from the folder database but without... (5 Replies)
Discussion started by: FUTURE_EINSTEIN
5 Replies
6. Shell Programming and Scripting
I need help. I have to create a script which will delete multiple directory (folders) that are two months old. Example, I have folders dated April, May, June and July. I have to delete folders April and May and retain June and July and as such that when the July month lapse, the folder June will be... (2 Replies)
Discussion started by: jasperux
2 Replies
7. Solaris
i want to restart samba service in solaris 1o installed on virtual machine
but under
under /etc/init.d directory there is no folder with name samba in solaris 10
how do i proceed ? (4 Replies)
Discussion started by: rehantayyab82
4 Replies
8. Shell Programming and Scripting
Hello All,
I have to write a shell script and use it in informatica. The script has to perform below actions:
The script gets executed from edw user.
Through the script, a DT folder has to be created under edw_sca user.
Is this scenario possible through a SHELL script or not.
... (2 Replies)
Discussion started by: bghosh
2 Replies
9. Shell Programming and Scripting
I need help to write shell script to copy files from one server to another server.
Source Directory UAE(inside i have another folder Misc with files inside UAE folder).I have to copy this to another server UAE folder( Files should be copied to UAE folder and Misc files should be copied in target... (3 Replies)
Discussion started by: naresh2389
3 Replies
LEARN ABOUT MOJAVE
mail::filter5.18
Mail::Filter(3) User Contributed Perl Documentation Mail::Filter(3)
NAME
Mail::Filter - Filter mail through multiple subroutines
SYNOPSIS
use Mail::Filter;
my $filter = Mail::Filter->new( &filter1, &filter2 );
my $mail = Mail::Internet->new( [<>] );
my $mail = $filter->filter($mail);
my $folder = Mail::Folder->new( .... );
my $filter->filter($folder);
DESCRIPTION
"Mail::Filter" provides an interface to filtering Email through multiple subroutines.
"Mail::Filter" filters mail by calling each filter subroutine in turn. Each filter subroutine is called with two arguments, the first is
the filter object and the second is the mail or folder object being filtered.
The result from each filter sub is passed to the next filter as the mail object. If a filter subroutine returns undef, then "Mail::Filter"
will abort and return immediately.
The function returns the result from the last subroutine to operate on the mail object.
METHODS
Constructors
Mail::Filter->new([FILTER [, ... ]])
Create a new "Mail::Filter" object with the given filter subroutines. Each filter may be either a code reference or the name of a
method to call on the <Mail::Filter> object.
Accessors
$obj->add(FILTER [, FILTER ...])
Add the given filters to the end of the filter list.
Processing
$obj->filter(MAIL-OBJECT | MAIL-FOLDER)
If the first argument is a "Mail::Internet" object, then this object will be passed through the filter list. If the first argument is a
"Mail::Folder" object, then each message in turn will be passed through the filter list.
$obj->folder()
While the "filter" method is called with a "Mail::Folder" object, these filter subroutines can call this method to obtain the folder
object that is being processed.
$obj->msgnum()
If the "filter" method is called with a "Mail::Folder" object, then the filter subroutines may call this method to obtain the message
number of the message that is being processed.
SEE ALSO
This module is part of the MailTools distribution, http://perl.overmeer.net/mailtools/.
AUTHORS
The MailTools bundle was developed by Graham Barr. Later, Mark Overmeer took over maintenance without commitment to further development.
Mail::Cap by Gisle Aas <aas@oslonett.no>. Mail::Field::AddrList by Peter Orbaek <poe@cit.dk>. Mail::Mailer and Mail::Send by Tim Bunce
<Tim.Bunce@ig.co.uk>. For other contributors see ChangeLog.
LICENSE
Copyrights 1995-2000 Graham Barr <gbarr@pobox.com> and 2001-2007 Mark Overmeer <perl@overmeer.net>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See
http://www.perl.com/perl/misc/Artistic.html
perl v5.18.2 2014-01-05 Mail::Filter(3)