On Wed, Nov 26, 2003 at 10:42:58AM -0500, Igor Pechtchanski wrote:
> On Wed, 26 Nov 2003, Ronald Landheer-Cieslak wrote:
>
> > On Wed, Nov 26, 2003 at 04:55:34AM -0500, c wrote:
> > > Just started to get somewhere until i wanted to cat a heap of csv files and
> > > then send the unique records to
On Wed, 26 Nov 2003, Ronald Landheer-Cieslak wrote:
> On Wed, Nov 26, 2003 at 04:55:34AM -0500, c wrote:
> > Just started to get somewhere until i wanted to cat a heap of csv files and
> > then send the unique records to a new file.
> > I thought it couldnt be to hard but now my brain hurts.
> > C
How about:
--- 8< cut here ---
#!/bin/bash
pushd /cygdrive/d/pc1
for file in *.csv; do
if [ "${file##new_}" != "${file}" ]; then next; fi
cat "${file}" | uniq > "new_${file}"
done
popd
---
I Guess bas is like perl: TIMTOWTDI ;)
> Ronald Landheer-Cieslak wrote on
Ronald Landheer-Cieslak wrote on Wednesday, November 26, 2003 12:53 PM:
> On Wed, Nov 26, 2003 at 04:55:34AM -0500, c wrote:
>> Just started to get somewhere until i wanted to cat a heap of csv
>> files and then send the unique records to a new file. I thought it
>> couldnt be to hard but now my b
:O) thankyou kindly
Cameron
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Ronald Landheer-Cieslak
Sent: Wednesday, November 26, 2003 6:53 AM
To: [EMAIL PROTECTED]
Subject: Re: newby stupid question - cat mutiple files to new piped
output files
On Wed
On Wed, Nov 26, 2003 at 04:55:34AM -0500, c wrote:
> Just started to get somewhere until i wanted to cat a heap of csv files and
> then send the unique records to a new file.
> I thought it couldnt be to hard but now my brain hurts.
> Can anyone help me with a line of code that will do the command
6 matches
Mail list logo