[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] swap 2 fields (in a tabbed file)?
- Subject: [ale] swap 2 fields (in a tabbed file)?
- From: mhirsch at nubridges.com (Michael D. Hirsch)
- Date: Wed, 29 Jan 2003 12:49:49 -0500
On Wednesday 29 January 2003 12:46 pm, Christopher Bergeron wrote:
> Well, ultimately I'd like to do it on the command line using existing
> utilities or possibly regexp's.
I know this is absolutely trivial in awk, but I don't recall the exact
command. awk automatically parses it into fields and you just print them
out in a different order.
--Michael
> Denny Chambers wrote:
> | You did not specifiy a language in which to do this in, so I will
> | offer up Java, and it's StringTokenizer class
> | (java.util.StringTokenizer). You should be able to do this with just a
> | couple of lines of code.
> |
> | Denny
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale