mimicking awks fs and ofs
Eric Chatonet
eric.chatonet at sosmartsoftware.com
Fri Feb 22 06:37:27 EST 2008
Hi Peter,
Le 22 févr. 08 à 12:11, Peter Alcibiades a écrit :
> How do you do this? Its super easy in awk. You just set the item
> delimiters
> for the input file and the item delimiters for the output file
> independently.
> Then if you write, for instance, items 1 and 2 to the output fie,
> they may
> have been tab separated in the input file but will now be |
> separated or
> whatever in the output file. Its very simple. But there doesn't
> seem to be
> the same thing in Rev.
>
> Or maybe I am too hung up on the awk model and can't see it?
This a bit different in Rev :-)
Assuming tImput is a tab delimited list and tOutput must be a comma
delimited one:
set the itemDel to tab
put item x to y of tInput into tOutput
replace tab with comma in tOutput
<Do what you want with tOutput>
Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------
More information about the use-livecode
mailing list