Sponsored Content
Full Discussion: Help with tokenizer
Top Forums Shell Programming and Scripting Help with tokenizer Post 302166421 by sbasetty on Tuesday 12th of February 2008 12:34:01 AM
Old 02-12-2008
Help with tokenizer

Hello folks,

Can you help me with this issue:
I have a flatfile says:

line#1:
HARRY WENT TO SCHOOL|SALLY JOINED HIM|AT SAINT ANN|THEY ARE GOING ON PICNIC |CAN YOU GUESS|

line#2:
HELLO SAM|HOW IS IT GOING|DID YOU WATCH THE FOOTBALL LAST SUNDAY|


I would like to have the output something like this:


HARRY WENT TO SCHOOL
SALLY JOINED HIM
AT SAINT ANN
THEY ARE GOING ON PICNIC
CAN YOU GUESS
HELLO SAM
HOW IS IT GOING
DID YOU WATCH THE FOOTBALL LAST SUNDAY

******************************
the file is parsed based on token "|".

Can you please help on this
thanks in advance...


Regards
S Smilie
 
CONFIG.GUESS(1) 						   User Commands						   CONFIG.GUESS(1)

NAME
config.guess - guess the build system triplet SYNOPSIS
config.guess [OPTION] DESCRIPTION
The GNU build system distinguishes three types of machines, the `build' machine on which the compilers are run, the `host' machine on which the package being built will run, and, exclusively when you build a compiler, assembler etc., the `target' machine, for which the compiler being built will produce code. This script will guess the type of the `build' machine. Output the configuration name of the system `config.guess' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit ENVIRONMENT VARIABLES
config.guess might need to compile and run C code, hence it needs a compiler for the `build' machine: use the environment variable `CC_FOR_BUILD' to specify the compiler for the build machine. If `CC_FOR_BUILD' is not specified, `CC' will be used. Be sure to specify `CC_FOR_BUILD' is `CC' is a cross-compiler to the `host' machine. CC_FOR_BUILD a native C compiler, defaults to `cc' CC a native C compiler, the previous variable is preferred REPORTING BUGS
Report bugs and patches to <config-patches@gnu.org>. Originally written by Per Bothner. Copyright 1992-2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
autoconf(1), automake(1), autoreconf(1), autoupdate(1), autoheader(1), autoscan(1), config.guess(1), config.sub(1), ifnames(1), libtool(1). GNU Autoconf 2.69 August 2017 CONFIG.GUESS(1)
All times are GMT -4. The time now is 02:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy