delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/26/04:57:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: <camacazi AT dodo DOT com DOT au>
From: "c" <camacazi AT dodo DOT com DOT au>
To: <cygwin AT cygwin DOT com>
Subject: newby stupid question - cat mutiple files to new piped output files
Date: Wed, 26 Nov 2003 04:55:34 -0500
Message-ID: <NCEKKLNHNDLBNKAHJKLCIEANCBAA.camacazi@dodo.com.au>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-Reply-To: <NCEKKLNHNDLBNKAHJKLCAEAMCBAA.camacazi@dodo.com.au>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Note-from-DJ: This may be spam


Hi all

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 below
'$ cat d:/pc1/filename.csv |uniq > d:/pc1/newfilename.csv'
but i want it do it repeatidly for every .csv file in that directory?

cheers :O)
Cameron

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019