Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Splitting Files (AIX 5.2)

RE: Splitting Files (AIX 5.2)

From: Gogala, Mladen <Mladen.Gogala_at_aetn.com>
Date: Fri, 10 Sep 2004 13:00:30 -0400
Message-ID: <30462D80AA52E74698512ADCC4F7EAA3122397AD@EXCHANGE>


Stephen, I'll have to start waging jihad against you. In this case, though, aesthetics of the code speaks for itself. How can you even dream of comparing my beautiful, well structured and tidy perl code with the monstrosity below?

--
Mladen Gogala
A & E TV Network
Ext. 1216



> -----Original Message-----
> From: Stephen.Lee_at_DTAG.Com [mailto:Stephen.Lee_at_DTAG.Com]
> Sent: Friday, September 10, 2004 12:22 PM
> To: oracle-l_at_freelists.org
> Subject: RE: Splitting Files (AIX 5.2)
>
>
>
> Run this after doing your split command.
> ( We don't need no stinkin' Perl. :-)) )
>
> #!/bin/ksh
>
> COUNT=1
>
> for i in `ls -1 93_11_w2_.[a-z][a-z]* 2> /dev/null`; do
> j=`echo "$COUNT:$i" | /usr/bin/nawk -F: '{printf("%s%04d",
> substr($2,1,9), $1)'}`
> /usr/bin/mv "$i" "$j"
> COUNT=$(( $COUNT + 1 ))
> done
-- To unsubscribe - mailto:oracle-l-request_at_freelists.org&subject=unsubscribe To search the archives - http://www.freelists.org/archives/oracle-l/
Received on Fri Sep 10 2004 - 11:56:04 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US