[ale] swap 2 fields (in a tabbed file)?

Michael D. Hirsch mhirsch at nubridges.com
Wed Jan 29 12:49:49 EST 2003


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






More information about the Ale mailing list