<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic sort data into monthly directories in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979046#M95587</link>
    <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I have a file that lists all data in a directory ( about 2 years worth of data )&lt;BR /&gt;&lt;BR /&gt;I need to search the list file and create a directory for each month and year ie&lt;BR /&gt;&lt;BR /&gt;archive.&lt;DIRNAME&gt;.&lt;YEARMONTH&gt;&lt;BR /&gt;archive.outdata.0703&lt;BR /&gt;&lt;BR /&gt;I have an idea how to do this however am stuggling getting the sytax.&lt;BR /&gt;&lt;BR /&gt;I will then need to move the files in outdata to the relevant archive directory.&lt;BR /&gt;&lt;BR /&gt;please any help will be much appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Chris.&lt;/YEARMONTH&gt;&lt;/DIRNAME&gt;</description>
    <pubDate>Wed, 11 Apr 2007 04:37:35 GMT</pubDate>
    <dc:creator>lawrenzo</dc:creator>
    <dc:date>2007-04-11T04:37:35Z</dc:date>
    <item>
      <title>sort data into monthly directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979046#M95587</link>
      <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;I have a file that lists all data in a directory ( about 2 years worth of data )&lt;BR /&gt;&lt;BR /&gt;I need to search the list file and create a directory for each month and year ie&lt;BR /&gt;&lt;BR /&gt;archive.&lt;DIRNAME&gt;.&lt;YEARMONTH&gt;&lt;BR /&gt;archive.outdata.0703&lt;BR /&gt;&lt;BR /&gt;I have an idea how to do this however am stuggling getting the sytax.&lt;BR /&gt;&lt;BR /&gt;I will then need to move the files in outdata to the relevant archive directory.&lt;BR /&gt;&lt;BR /&gt;please any help will be much appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Chris.&lt;/YEARMONTH&gt;&lt;/DIRNAME&gt;</description>
      <pubDate>Wed, 11 Apr 2007 04:37:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979046#M95587</guid>
      <dc:creator>lawrenzo</dc:creator>
      <dc:date>2007-04-11T04:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: sort data into monthly directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979047#M95588</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Pl. clearify following,&lt;BR /&gt;&lt;BR /&gt;1] I have a file that lists all data in a directory ( about 2 years worth of data )&lt;BR /&gt;&lt;BR /&gt;What is the data format of the that 'lists all data in a directory', give sample.&lt;BR /&gt;&lt;BR /&gt;2] I need to search the list file and create a directory for each month and year&lt;BR /&gt;&lt;BR /&gt;list file is the same file that 'lists all data in a directory'&lt;BR /&gt;&lt;BR /&gt;3] I will then need to move the files in outdata to the relevant archive directory.&lt;BR /&gt;&lt;BR /&gt;What is 'outdata' ?</description>
      <pubDate>Wed, 11 Apr 2007 04:52:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979047#M95588</guid>
      <dc:creator>SANTOSH S. MHASKAR</dc:creator>
      <dc:date>2007-04-11T04:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: sort data into monthly directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979048#M95589</link>
      <description>archive.&lt;DIRNAME&gt;.&lt;YEARMONTH&gt;&lt;BR /&gt;archive.outdata.0703&lt;BR /&gt;&lt;BR /&gt;Is this the contents of your data file?  Or the resultant directory you want to create?&lt;BR /&gt;&lt;BR /&gt;Is "archive.outdata.0703" is a directory with files you want to move?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I will then need to move the files in outdata to the relevant archive directory.&lt;BR /&gt;&lt;BR /&gt;Where is your list of files?&lt;BR /&gt;And you show some lines of your data file??&lt;/YEARMONTH&gt;&lt;/DIRNAME&gt;</description>
      <pubDate>Wed, 11 Apr 2007 04:55:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979048#M95589</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-04-11T04:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: sort data into monthly directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979049#M95590</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1)What is the data format of the that 'lists all data in a directory', give sample.&lt;BR /&gt;&lt;BR /&gt;the list files are produced from ls -l:&lt;BR /&gt;&lt;BR /&gt;-rw-r--r--   1 950      staff            43 05 Oct 2006  AST0000015&lt;BR /&gt;-rw-r--r--   1 950      staff            43 17 Oct 18:42 AST0000016&lt;BR /&gt;&lt;BR /&gt;2)list file is the same file that 'lists all data in a directory'&lt;BR /&gt;&lt;BR /&gt;yes that is correct - the file that details every file to be moved to the newly created directory &lt;BR /&gt;&lt;BR /&gt;3) What is 'outdata' ?&lt;BR /&gt;&lt;BR /&gt;outdata is an example of the directory name where the files exist.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 11 Apr 2007 04:57:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979049#M95590</guid>
      <dc:creator>lawrenzo</dc:creator>
      <dc:date>2007-04-11T04:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: sort data into monthly directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979050#M95591</link>
      <description>archive.&lt;DIRNAME&gt;.&lt;YEARMONTH&gt;&lt;BR /&gt;archive.outdata.0703&lt;BR /&gt;&lt;BR /&gt;Is this the contents of your data file? Or the resultant directory you want to create?&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; this will be the resulying directory - the contents file is called outdata&lt;BR /&gt;&lt;BR /&gt;Is "archive.outdata.0703" is a directory with files you want to move?&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; all files with March date stamp will be moved to archive.outdata.0703 directory once created by the script&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;I am working through an awk book to attempt the correct syntax however not found the answer yet.&lt;BR /&gt;&lt;BR /&gt;Thanks for the help&lt;/YEARMONTH&gt;&lt;/DIRNAME&gt;</description>
      <pubDate>Wed, 11 Apr 2007 05:11:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979050#M95591</guid>
      <dc:creator>lawrenzo</dc:creator>
      <dc:date>2007-04-11T05:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: sort data into monthly directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979051#M95592</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;go to the dir where ur dir is located&lt;BR /&gt;execute following script&lt;BR /&gt;&lt;BR /&gt;----------------------------&lt;BR /&gt;set -vx&lt;BR /&gt;Cur_Year=`date +'%Y'`&lt;BR /&gt;for File_cur_year in `ls -lt|awk 'length($8) == 5 {print $9}'`&lt;BR /&gt;do&lt;BR /&gt;        if [ ! -d ${File_cur_year} ]&lt;BR /&gt;        then&lt;BR /&gt;                File_cur_mon=`ll $File_cur_year|awk 'length($8) == 5 {print $6}'`&lt;BR /&gt;        else&lt;BR /&gt;                File_cur_mon=`ls -ld $File_cur_year|awk 'length($8) == 5 {print $6}'`&lt;BR /&gt;        fi&lt;BR /&gt;        if [ ! -d archive.outdata.${File_cur_year}${File_cur_mon} ]&lt;BR /&gt;        then&lt;BR /&gt;                mkdir archive.outdata.${Cur_Year}${File_cur_mon}&lt;BR /&gt;                cp ${File_cur_year} archive.outdata.${Cur_Year}${File_cur_mon}&lt;BR /&gt;        else&lt;BR /&gt;                cp ${File_cur_year} archive.outdata.${Cur_Year}${File_cur_mon}&lt;BR /&gt;        fi&lt;BR /&gt;done&lt;BR /&gt;for File_cur_year in `ls -lt|awk 'length($8) == 4 {print $9}'`&lt;BR /&gt;do&lt;BR /&gt;        if [ ! -d ${File_cur_year} ]&lt;BR /&gt;        then&lt;BR /&gt;                File_cur_mon=`ll $File_cur_year|awk 'length($8) == 5 {print $6}'`&lt;BR /&gt;        else&lt;BR /&gt;                File_cur_mon=`ls -ld $File_cur_year|awk 'length($8) == 5 {print $6}'`&lt;BR /&gt;        fi&lt;BR /&gt;        if [ ! -d archive.outdata.${File_cur_year}${File_cur_mon} ]&lt;BR /&gt;        then&lt;BR /&gt;                mkdir archive.outdata.${Cur_Year}${File_cur_mon}&lt;BR /&gt;                cp ${File_cur_year} archive.outdata.${Cur_Year}${File_cur_mon}&lt;BR /&gt;        else&lt;BR /&gt;                cp ${File_cur_year} archive.outdata.${Cur_Year}${File_cur_mon}&lt;BR /&gt;        fi&lt;BR /&gt;done&lt;BR /&gt;------------------------------------</description>
      <pubDate>Wed, 11 Apr 2007 06:27:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979051#M95592</guid>
      <dc:creator>SANTOSH S. MHASKAR</dc:creator>
      <dc:date>2007-04-11T06:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: sort data into monthly directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979052#M95593</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;Sorry one line to add in second for loop for &lt;BR /&gt;Cur_Year variable&lt;BR /&gt;&lt;BR /&gt;----------------------&lt;BR /&gt;Cur_Year=`date +'%Y'`&lt;BR /&gt;for File_cur_year in `ls -lt|awk 'length($8) == 5 {print $9}'`&lt;BR /&gt;do&lt;BR /&gt;        if [ ! -d ${File_cur_year} ]&lt;BR /&gt;        then&lt;BR /&gt;                File_cur_mon=`ll $File_cur_year|awk 'length($8) == 5 {print $6}'`&lt;BR /&gt;        else&lt;BR /&gt;                File_cur_mon=`ls -ld $File_cur_year|awk 'length($8) == 5 {print $6}'`&lt;BR /&gt;        fi&lt;BR /&gt;        if [ ! -d archive.outdata.${File_cur_year}${File_cur_mon} ]&lt;BR /&gt;        then&lt;BR /&gt;                mkdir archive.outdata.${Cur_Year}${File_cur_mon}&lt;BR /&gt;                cp ${File_cur_year} archive.outdata.${Cur_Year}${File_cur_mon}&lt;BR /&gt;        else&lt;BR /&gt;                cp ${File_cur_year} archive.outdata.${Cur_Year}${File_cur_mon}&lt;BR /&gt;        fi&lt;BR /&gt;done&lt;BR /&gt;for File_cur_year in `ls -lt|awk 'length($8) == 4 {print $9}'`&lt;BR /&gt;Cur_Year=`ll ${File_cur_year}|awk 'length($8) == 4 {print $6`&lt;BR /&gt;do&lt;BR /&gt;        if [ ! -d ${File_cur_year} ]&lt;BR /&gt;        then&lt;BR /&gt;                File_cur_mon=`ll $File_cur_year|awk 'length($8) == 5 {print $6}'`&lt;BR /&gt;        else&lt;BR /&gt;                File_cur_mon=`ls -ld $File_cur_year|awk 'length($8) == 5 {print $6}'`&lt;BR /&gt;        fi&lt;BR /&gt;        if [ ! -d archive.outdata.${File_cur_year}${File_cur_mon} ]&lt;BR /&gt;        then&lt;BR /&gt;                mkdir archive.outdata.${Cur_Year}${File_cur_mon}&lt;BR /&gt;                cp ${File_cur_year} archive.outdata.${Cur_Year}${File_cur_mon}&lt;BR /&gt;        else&lt;BR /&gt;                cp ${File_cur_year} archive.outdata.${Cur_Year}${File_cur_mon}&lt;BR /&gt;        fi&lt;BR /&gt;done</description>
      <pubDate>Wed, 11 Apr 2007 06:36:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979052#M95593</guid>
      <dc:creator>SANTOSH S. MHASKAR</dc:creator>
      <dc:date>2007-04-11T06:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: sort data into monthly directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979053#M95594</link>
      <description>ok thanks man,&lt;BR /&gt;&lt;BR /&gt;I will make a start with this syntax as I still require the month to be displayed as a numeric ie archive.outdir.0703 &lt;BR /&gt;&lt;BR /&gt;this indicates 07 being the year and 03 being the month.&lt;BR /&gt;&lt;BR /&gt;cheers &lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Wed, 11 Apr 2007 07:44:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979053#M95594</guid>
      <dc:creator>lawrenzo</dc:creator>
      <dc:date>2007-04-11T07:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: sort data into monthly directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979054#M95595</link>
      <description>&lt;!--!*#--&gt;I would recommend not using a listing with pre-formatted ugly dates.&lt;BR /&gt;Use perl to 'glob' through the files;&lt;BR /&gt;'stat' the files found for the last modification time in seconds&lt;BR /&gt;'localtime' to translate to year and month&lt;BR /&gt;'sprintf' to nicely format&lt;BR /&gt;mkdir if needed&lt;BR /&gt;rename&lt;BR /&gt;presto.&lt;BR /&gt;&lt;BR /&gt;See working example below&lt;BR /&gt;Now adapt to your eact needs.&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein van den Heuvel (at gmail dot com)&lt;BR /&gt;HvdH Performance Consulting&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$cat move.pl&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;my $source = shift or die "Please provide source path";&lt;BR /&gt;my $target = shift;&lt;BR /&gt;$target = "archive" unless $target;&lt;BR /&gt;my %seen;&lt;BR /&gt;while (&amp;lt;$source/*&amp;gt;) {&lt;BR /&gt;   my ($m,$y) = (localtime((stat)[9]))[4,5];&lt;BR /&gt;   my $yymm = sprintf ("%s.%02d%02d", $target, $y%100, ++$m);&lt;BR /&gt;   my $old = $_;&lt;BR /&gt;   s/^$source/$yymm/;&lt;BR /&gt;#   print "$m $y $old $_\n";&lt;BR /&gt;   if (!exists($seen{$yymm})) {&lt;BR /&gt;     mkdir $yymm unless -d $yymm;&lt;BR /&gt;     $seen{$yymm}++;&lt;BR /&gt;   }&lt;BR /&gt;   rename $old, $_;&lt;BR /&gt;}&lt;BR /&gt;#-----------------------------------&lt;BR /&gt;$ touch -t 0102030405 a&lt;BR /&gt;$ touch -t 0105030405 b&lt;BR /&gt;$ touch -t 0505030405 c&lt;BR /&gt;$ touch -t 0505030405 d&lt;BR /&gt;$ ls -l&lt;BR /&gt;total 0&lt;BR /&gt;-rw-rw-rw-   1 hein       513              0 Feb  3  2001 a&lt;BR /&gt;-rw-rw-rw-   1 hein       513              0 May  3  2001 b&lt;BR /&gt;-rw-rw-rw-   1 hein       513              0 May  3  2005 c&lt;BR /&gt;-rw-rw-rw-   1 hein       513              0 May  3  2005 d&lt;BR /&gt;$ perl move.pl x&lt;BR /&gt;2 101 archive.0102 archive.0102/a&lt;BR /&gt;5 101 archive.0105 archive.0105/b&lt;BR /&gt;5 105 archive.0505 archive.0505/c&lt;BR /&gt;5 105 archive.0505 archive.0505/d&lt;BR /&gt;$ ls -l arc*&lt;BR /&gt;&lt;BR /&gt;archive.0102:&lt;BR /&gt;total 0&lt;BR /&gt;-rw-rw-rw-   1 hein       513              0 Feb  3  2001 a&lt;BR /&gt;&lt;BR /&gt;archive.0105:&lt;BR /&gt;total 0&lt;BR /&gt;-rw-rw-rw-   1 hein       513              0 May  3  2001 b&lt;BR /&gt;&lt;BR /&gt;archive.0505:&lt;BR /&gt;total 0&lt;BR /&gt;-rw-rw-rw-   1 hein       513              0 May  3  2005 c&lt;BR /&gt;-rw-rw-rw-   1 hein       513              0 May  3  2005 d&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Apr 2007 08:53:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979054#M95595</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-04-11T08:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: sort data into monthly directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979055#M95596</link>
      <description>excellent thanks again my friend</description>
      <pubDate>Wed, 11 Apr 2007 09:06:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979055#M95596</guid>
      <dc:creator>lawrenzo</dc:creator>
      <dc:date>2007-04-11T09:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: sort data into monthly directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979056#M95597</link>
      <description>Hein,&lt;BR /&gt;&lt;BR /&gt;This doesn't work for me ....&lt;BR /&gt;&lt;BR /&gt;can you please elabotate on the syntax as I am not familiar with perl ...&lt;BR /&gt;&lt;BR /&gt;This will be a one time operation and I have a list of files as the directory where the data is being moved will need to have 3 months worth of data in as I have developed another script to dothis monthly from syntax you have previously supplied.&lt;BR /&gt;&lt;BR /&gt;Thanks again for the help.&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Wed, 11 Apr 2007 09:33:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979056#M95597</guid>
      <dc:creator>lawrenzo</dc:creator>
      <dc:date>2007-04-11T09:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: sort data into monthly directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979057#M95598</link>
      <description>&lt;!--!*#--&gt;Hi Chris:&lt;BR /&gt;&lt;BR /&gt;Copy Hein's script and add the interpreter (she-bang) at the very beginning just as you would do for a shell or 'awk' script:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;&lt;BR /&gt;Then, run it passing the path name of the directory you want to archive:&lt;BR /&gt;&lt;BR /&gt;# ./move.pl /home/chris/oldstuff&lt;BR /&gt;&lt;BR /&gt;The script globs (creates a list of files) in the source directory you pass as the first argument.&lt;BR /&gt;&lt;BR /&gt;This file list is sucessively read and the 'mtime' (modification) timestamp in your localtime derived from a 'stat()' of each file in the list.  You are only interested in the month and year and as you can see, the month is returned zero-relative and the year as the year-1900.  &lt;BR /&gt;&lt;BR /&gt;So as not to return an error for existing directory's, each year-month combination is tracked in a hash.  If a year-month combination that hasn't already occured is encountered, a 'mkdir' is issued.&lt;BR /&gt;&lt;BR /&gt;The 'rename()' system call is that which is used by the 'mv' command in a shell. &lt;BR /&gt;&lt;BR /&gt;If you already have a file that contains the *names* of the files you want to archive, you could amend Hein's script to something like this variation:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;my $target = shift;&lt;BR /&gt;$target = "archive" unless $target;&lt;BR /&gt;my %seen;&lt;BR /&gt;while (&amp;lt;&amp;gt;) {&lt;BR /&gt;   chomp;&lt;BR /&gt;   my ($m,$y) = (localtime((stat)[9]))[4,5];&lt;BR /&gt;   my $yymm = sprintf ("%s.%02d%02d", $target, $y%100, ++$m);&lt;BR /&gt;   my $old = $_;&lt;BR /&gt;   s/^/$yymm/;&lt;BR /&gt;   if (!exists($seen{$yymm})) {&lt;BR /&gt;     mkdir $yymm unless -d $yymm;&lt;BR /&gt;     $seen{$yymm}++;&lt;BR /&gt;   }&lt;BR /&gt;   rename $old, $_;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;In this case do:&lt;BR /&gt;&lt;BR /&gt;# cd /path #...containing the files named with relative paths in 'myfile':&lt;BR /&gt;&lt;BR /&gt;# ./move2.pl myfile&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 11 Apr 2007 11:29:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979057#M95598</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-04-11T11:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: sort data into monthly directories</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979058#M95599</link>
      <description>ok will give it a whirl ....&lt;BR /&gt;&lt;BR /&gt;Thanks guys.&lt;BR /&gt;&lt;BR /&gt;Chris.</description>
      <pubDate>Thu, 12 Apr 2007 05:49:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sort-data-into-monthly-directories/m-p/3979058#M95599</guid>
      <dc:creator>lawrenzo</dc:creator>
      <dc:date>2007-04-12T05:49:49Z</dc:date>
    </item>
  </channel>
</rss>

