I am trying to copy some files from one location to another and I need to write a script to move all the files and the subdirectories to the new location (both unix), but excluding the temp directory.
i.e., I want to avoid copying my temp subdirectories during the process of copying other files... (3 Replies)
Hi
if anyone could help me :)
I did a lot of search and 70% of answer is "how to count files in all subdirectories".
A basic problem for me is how to count files in every subdirectory separately then sort it by number of files
For example:
dir1
file1
file2
subdir11
dir2
dir3
... (3 Replies)
Hi All,
I am using the foolowing
find /home/vcrd/put -name '*.z' -mtime +5 -exec rm -f {} \;
in a shell script, it is deleting all file having *.z in /home/vcrd/put/appl sub directory. I donot want the files in the subdirectory are deleted.
Regards
Megh (2 Replies)
Hello,
I am trying to write a shell script to search for a pattern in the directory and show only one entry for each field, essentially I am looking to search for a pattern in a file and list that file name. (1 Reply)
I'm trying to organize my MB Pro by moving all my jpeg files to a single folder from the desktop. There are some on the desktop that are not in any folder. I was at the command line and typed
mv *.jpg "Jpeg files"
but it only moved the files that were on the desktop, not any of the ones that... (3 Replies)
Forgive me if there is an answer to this somewhere in the forums. I've gone through as much as I could but couldn't find a relevant answer.
What I'm trying to do is use the ll command to list some files in a subdirectory that matches a certain format.
I've tried ll *.*a* <subdirectory> but... (3 Replies)
I am trying to find all DAT files in a subdirectory named IN. I do not know the entire path.
For example: /stage/<?>/<?>/IN/file.DAT
I am using the find command without success:
find /stage -name IN -a -name '*.DAT' -print
What is the correct logic and syntax? Thank you for the help. (5 Replies)
Hello,
I'm very new to scripting languages and I'm to use shell script to write a utility to backup files with a specific extension into a subdirectory.
Here is what I have done.
#!/bin/bash
read -p "Enter file(s) extension: " FILE
if ; then
mkdir `whoami`.$FILE #To... (9 Replies)
How to Copy non-empty files into subdirectory
I have directory A
there are bunch of files: a.txt a.txt.target b.txt b.target.txt.......
How can i find out the non-empty file within *.txt.target and copy them into a subdirectory B?
Thank you. (2 Replies)
Discussion started by: grace_shen
2 Replies
LEARN ABOUT DEBIAN
email::folder
Email::Folder(3pm) User Contributed Perl Documentation Email::Folder(3pm)NAME
Email::Folder - read all the messages from a folder as Email::Simple objects.
SYNOPSIS
use Email::Folder;
my $folder = Email::Folder->new("some_file");
print join "
", map { $_->header("Subject") } $folder->messages;
METHODS
new($folder, %options)
Takes the name of a folder, and a hash of options
If a 'reader' option is passed in then that is used as the class to read in messages with.
messages
Returns a list containing all of the messages in the folder. Can only be called once as it drains the iterator.
next_message
acts as an iterator. reads the next message from a folder. returns false at the end of the folder
bless_message($message)
Takes a raw RFC822 message and blesses it into a class.
By default this is an Email::Simple object but can easily be overriden in a subclass.
For example, this simple subclass just returns the raw rfc822 messages, and exposes the speed of the parser.
package Email::RawFolder;
use base 'Email::Folder';
sub bless_message { $_[1] };
1;
reader
read-only accessor to the underlying Email::Reader subclass instance
PERL EMAIL PROJECT
This module is maintained by the Perl Email Project
<http://emailproject.perl.org/wiki/Email::Folder>
AUTHORS
Simon Wistow <simon@thegestalt.org>
Richard Clamp <richardc@unixbeard.net>
COPYING
Copyright 2006, Simon Wistow
Distributed under the same terms as Perl itself.
This software is under no warranty and will probably ruin your life, kill your friends, burn your house and bring about the doobie
brothers.
SEE ALSO
Email::LocalDelivery, Email::FolderType, Email::Simple
perl v5.10.0 2009-07-27 Email::Folder(3pm)