04-14-2005
Thanks a lot for that great reply..
Trying to learn it..what each lines does..
cheers..
esham
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have an entry file for a perl script from which I need to remove duplicate entry.
For example:
one:two:three
one:four:five
two:one:three
must become :
one:two:three
two:one:three
The duplicate entry is only the first field. I try many options of sort system command but don't... (4 Replies)
Discussion started by: annececile
4 Replies
2. Shell Programming and Scripting
Perl file::find can I sort the out put
I am using file::find in my script but how I wish to process each file found in date order.
Can I sort this module?
eg
part of current script is....
use File::Find;
# Recursively find all files and directories in $mqueue_directory
find(\&wanted,... (2 Replies)
Discussion started by: Andrek
2 Replies
3. Shell Programming and Scripting
Hi,
I have a file of names and I want perl to do a sort on this file. How can I sort this list of names using perl? I'm thinking of a command like:
@sorted = sort { lc($a) cmp lc($b) } @not_sorted # alphabetical sort
The only thing I'm sort of unsure of is, how would I get the name in my... (6 Replies)
Discussion started by: eltinator
6 Replies
4. AIX
hello
i have a requirement where i have a direcotry in which i get files in the format
STOCKS.20080114.dat
STOCKS.20080115.dat
STOCKS.20080117.dat
STOCKS.20080118.dat
i need to loop through the directory and sort by create date descending order and i need to process the first file.
... (1 Reply)
Discussion started by: dsdev_123
1 Replies
5. Shell Programming and Scripting
hi all
i want help in sortng date in paragraphs within file ,
i want to ask as if there any option to sort a certain pattern of file not the rest of file.i.e the data of file become sorted with respect to date
i have a log file as follows
!! *A0628/081 /08-01-10/13 H... (1 Reply)
Discussion started by: nabmufti
1 Replies
6. Shell Programming and Scripting
I need to extract the date part from the file name (20080221 in this ex) and compare it with the current date and delete it, if it is a past date.
$file = exp_ABCD4_T-2584780_upto_20080221.dmp.Z
really appreciate any help.
thanks
mkneni (4 Replies)
Discussion started by: MKNENI
4 Replies
7. Shell Programming and Scripting
Hi All,
I am having a pipe delimited file .In this file the 3rd column is having date values.I need to get the min date and max date from that file.
I have used
cut -d '|' test.dat -f 3|sort -u
But it is not sorting the date .How to sort the date column using unix commands
Thanks ... (4 Replies)
Discussion started by: risshanth
4 Replies
8. Shell Programming and Scripting
I now have a 230,000+ lines long text file formatted in segments like this:
Is there a way to sort this file to have everything in chronological order, based on the date and time in the text? In this example, I would like the result to be: (19 Replies)
Discussion started by: KidCactus
19 Replies
9. Shell Programming and Scripting
Hello All,
Need a shell script to sort entries in a file by date and time. Below are the entries in the file, i need to sort it first by the date and then time
Note :- Date is in MM/DD/YY format and date comes as the 6th & time comes on 7th coloumns respectively.
150 pbnawldb001-b... (10 Replies)
Discussion started by: ajiwww
10 Replies
10. Shell Programming and Scripting
Hi Experts,
I have a filelist collected from another server , now want to sort the output using date/time stamp filed.
- Filed 6, 7,8 are showing the date/time/stamp.
Here is the input:
#----------------------------------------------------------------------
-rw------- 1 root ... (3 Replies)
Discussion started by: rveri
3 Replies
LEARN ABOUT DEBIAN
ciderwebmail::model::imapclient
CiderWebmail::Model::IMAPClient(3pm) User Contributed Perl Documentation CiderWebmail::Model::IMAPClient(3pm)
NAME
CiderWebmail::Model::IMAPClient - Catalyst Model
DESCRIPTION
Interface to the IMAP Server
You should *really* read rfc3501 if you want to use this.
METHODS
new()
creates a new CiderWebmail::Model::IMAPClient
_die_on_error($c)
die if the last IMAP command sent to the server caused an error this sould be called after every command sent to the imap server.
disconnect
disconnect from IMAP Server, if connected
separator($c)
Returnes the folder separator
folder_tree($c)
Return all folders as hash-tree.
folder_sort
custom sort for folders always put INBOX on top
select($c, { mailbox => $mailbox })
selects a folder
message_count($c, { mailbox => $mailbox })
returnes the number of messages in a mailbox
unseen_count($c, { mailbox => $mailbox })
returnes the number of unseen messages in a mailbox
check_sort($sort)
Checks if the given sort criteria is valid.
get_folder_uids($c, { mailbox => $mailbox, sort => $sort, range => $range })
Returns a MessageSet object representing all UIDs in a mailbox The range option accepts a range of UIDs (for example 1:100 or 1:*), if you
specify a range containing '*' the last (highest UID) message will always be returned.
get_headers_hash($c, { uids => [qw/ 1 .. 10 /], sort => [qw/ date /], headers => [qw/ date subject /], mailbox => 'INBOX' })
returnes a array of hashes for messages in a mailbox
o uids (arrayref): a list of uids (as described in RFC2060) to fetch
o sort (arrayref): sort criteria (as described in RFC2060). for example: [ qw/ date / ] will sort by date, [ qw/ reverse date / ] will
sort by reverse date
o headers (arrayref, required): a list of mail-headers to fetch.
o mailbox (required)
search()
searches a mailbox returns a arrayref containing a list of UIDs
get_headers_string($c, { mailbox => $mailbox, uid => $uid })
returnes the fullheader of a message as a string
all_headers($c, { mailbox => $mailbox, uid => $uid })
fetch all headers for a message and updates the local headercache
get_headers($c, { mailbox => $mailbox })
fetch headers for a single message from the server or (if available) the local headercache
mark_read($c, { mailbox => $mailbox, uid => $uid })
mark a messages as read
mark_answered($c, { mailbox => $mailbox, uid => $uid })
mark a message as answered
bodypart_as_string($c, { mailbox => $mailbox, uid => $uid, parts => [ $part ] })
fetches body part(s) of a message - part IDs according to the bodystructure of the message
get_bodystructure($c, { mailbox => $mailbox, uid => $uid })
fetches bodystructure of a message. returns a Mail::IMAPClient::BodyStructure object - this might change when we parse this into something
more usefull
message_as_string($c, { mailbox => $mailbox, uid => $uid })
return a full message body as string
delete_messages($c, { mailbox => $mailbox, uid => $uid })
delete message(s) form the server and expunge the mailbox
append_message($c, { mailbox => $mailbox, message_text => $message_text })
low level method to append an RFC822-formatted message to a mailbox
move_message($c, { mailbox => $mailbox, target_mailbox => $target_mailbox, uid => $uid })
Move a message to another mailbox
create_mailbox($c, { mailbox => $mailbox, name => $name })
Create a subfolder
delete_mailbox($c, { mailbox => $mailbox })
Delete a complete folder
AUTHOR
Stefan Seifert and Mathias Reitinger <mathias.reitinger@loop0.org>
LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-06-16 CiderWebmail::Model::IMAPClient(3pm)