Sponsored Content
Top Forums Shell Programming and Scripting Building a script to share music with SoundCloud Post 302669057 by awc228 on Tuesday 10th of July 2012 11:04:44 AM
Old 07-10-2012
Thread removed.

Last edited by awc228; 07-10-2012 at 12:23 PM.. Reason: removing thread
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

building a SET clause in shell script

Hi, I have a comma delimited string, e.g. empno, ename, sal. Using Korn Shell Script I want to build the SET clause for an UPDATE statement, and set clause should look like this: empno=decode(:empno, '?', empno, :empno), ename=decode(:ename, '?', empno, :ename), sal=decode(:sal, '?',... (14 Replies)
Discussion started by: shalua
14 Replies

2. Shell Programming and Scripting

Help building the logic for a script

Hi guys, I am new to shell scripting, i need your help to tackle a problem. I have a single file, sample is below: 2008:07:08 07:01:14.360 (tid 4) INFO no bonus notifications to send 2008:07:08 07:01:50.823 (tid 1) INFO Database cleaned of all stale bonus records order than 30 days... (3 Replies)
Discussion started by: fahadaizaz
3 Replies

3. Shell Programming and Scripting

Need help in building Unix script

Hi all, We have a requirement like, There will be a file. For example the content will be as follows +=KA100012345678 0114092150R328abcdefgh D 345626 011409 1 2121212 232323 12121212 2323232323 1212121 We need to select the bold portion and change it to a... (11 Replies)
Discussion started by: susant.igate
11 Replies

4. Shell Programming and Scripting

Need help in building Unix script

Hi all, We have a requirement like we need to create a program which will change a particular string in the file. For example +=KA1238767 1121 3344645 686943 22356 01 567893 12435 12121 983627 121 1092 091217 02 may be for engine failure In the above file we need to change the bold string... (2 Replies)
Discussion started by: susant.igate
2 Replies

5. Shell Programming and Scripting

Building a script in Ubuntu (Linux) from existing DOS .cmd

Greetings, I would be very grateful to anyone who is willing to help and knows there scripting and how to convert a DOS CMD script. :) In this posting I am also hoping to pass on information to anyone wanting to see a bit of VMware command line stuff. I have made a script (batch file) that runs... (11 Replies)
Discussion started by: dp123
11 Replies

6. Shell Programming and Scripting

Help with data reformat if share share content

Input data: read1_data1 read1_data1 read2_data1 read3_data1 read4_data1 read4_data1 read4_data1 read5_data1 . . Desired output result: read1_data1 read1_data2 read2_data1 read3_data1 read4_data1 (3 Replies)
Discussion started by: perl_beginner
3 Replies

7. Homework & Coursework Questions

Music Organizer Script. Don't know where to begin.

I'm having problems with this assignment. I know how to do these basic unix "if" and "then" statements) What I am having trouble with is putting my script together. I started with #!/bin/bash and not sure how to continue. I have to indicate the source and destination folders, and make each a... (2 Replies)
Discussion started by: ulib00n
2 Replies

8. Programming

Will pay someone to write a script for my music app

Hey guys, not sure I am in the right forum for this, just trying a shot in the dark here. I am using an app on my android to control certain functions on my pc's music player but need to have the app perform 2 specific tasks within my music player so I am looking around for a coder or programmer... (2 Replies)
Discussion started by: mikehende
2 Replies

9. Shell Programming and Scripting

Building JSON command with bash script

Hello. I'm new to bash script and I'm learning the basics by writing some scripts. Recently a friend of mine asked me if I could try to write a script to him to automate a couple of processes that uses JSON RPCs. I'll try to explain in few words the workflow just to contextualize the problem.... (48 Replies)
Discussion started by: psysc0rpi0n
48 Replies
Thread(3pm)						User Contributed Perl Documentation					       Thread(3pm)

NAME
Mail::Thread - Perl implementation of JWZ's mail threading algorithm SYNOPSIS
use Mail::Thread; my $threader = new Mail::Thread (@messages); $threader->thread; dump_em($_,0) for $threader->rootset; sub dump_em { my ($self, $level) = @_; print ' \-> ' x $level; if ($self->message) { print $self->message->head->get("Subject") , " "; } else { print "[ Message $self not available ] "; } dump_em($self->child, $level+1) if $self->child; dump_em($self->next, $level) if $self->next; } DESCRIPTION
This module implements something relatively close to Jamie Zawinski's mail threading algorithm, as described by http://www.jwz.org/doc/threading.html. Any deviations from the algorithm are accidental. It's happy to be handed any mail object supported by "Email::Abstract". If you need to do anything else, you'll have to subclass and override "_get_hdr". METHODS
new(@messages) Creates a new threader; requires a bunch of messages to thread. thread Goes away and threads the messages together. rootset Returns a list of "Mail::Thread::Container"s which are not the parents of any other message. order($ordering_sub) calls "order_children" over each member of the root set, from one level higher "Mail::Thread::Container" methods "Mail::Thread::Container"s are the nodes of the thread tree. You can't just have the ordinary messages, because we might not have the message in question. For instance, a mailbox could contain two replies to a question that we haven't received yet. So all "logical" messages are stuffed in containers, whether we happen to have that container or not. To do anything useful with the thread tree, you're going to have to recurse around the list of "Mail::Thread::Containers". You do this with the following methods: parent child next Returns the container which is the parent, child or immediate sibling of this one, if one exists. message Returns the message held in this container, if we have one. messageid Returns the message ID for this container. This will be around whether we have the message or not, since some other message will have referred to it by message ID. header( $name ) returns the named header of the contained message subject returns the subject line of the contained message isreply examines the results of ->subject and returns true if it looks like a reply simple_subject the simplified version of ->subject (with reply markers removed) has_descendent($child) Returns true if this container has the given container as a child somewhere beneath it. add_child($child) Add the $child as a child of oneself. remove_child($child) Remove the $child as a child from oneself. children Returns a list of the immediate children of this container. set_children(@children) set the children of a node. does not update the ->parents of the @children order_children($ordering_sub) Recursively reorders children according to the results of $ordering_sub $ordering_sub is called with the containers children, and is expected to return them in their new order. # order by subject line $container->order_children( sub { sort { $a->topmost->message->subject cmp $b->topmost->message->subject } @_ } ); $ordering_sub may be omitted, in which case no ordering takes place topmost Walks the tree depth-first and returns the first message container found with a message attached recurse_down($callback) Calls the given callback on this node and all of its children. DEBUGGING
You can set $Mail::Thread::debug=1 to watch what's going on. MAINTAINER
Tony Bowden BUGS and QUERIES Please direct all correspondence regarding this module to: bug-Mail-Thread@rt.cpan.org ORIGINAL AUTHOR
Simon Cozens, <simon@cpan.org> COPYRIGHT AND LICENSE
Copyright 2003 by Kasei Copyright 2004 by Simon Cozens This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.0 2006-10-30 Thread(3pm)
All times are GMT -4. The time now is 05:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy