Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Scheme Programming Language

awk like re-arranging of text blocks


I'd like to take text strings with whitespace and re-arrange the non
whitespace text.  In awk I'd do something like {print $2, $3, $1}.
What would be a scheme way to do this?  string->list looks like a
start, but I was wondering if there were other tools.  I mostly use
guile.

Thanks in advance,

                        --Bruce

Robert Carleton <r@insidernewswire.com> wrote:
> I'd like to take text strings with whitespace and re-arrange the non
> whitespace text.  In awk I'd do something like {print $2, $3, $1}.
> What would be a scheme way to do this?  string->list looks like a
> start, but I was wondering if there were other tools.  I mostly use
> guile.

In Guile you can use READ-LINE and STRING-SPLIT. If you want to
port your program at a later time, they can both be written in
R5RS Scheme quite easily.

--
Nils M Holm <n m h @ t 3 x . o r g> -- http://t3x.org/nmh/

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc