Sponsored Content
Full Discussion: New Member - First Question
Top Forums Shell Programming and Scripting New Member - First Question Post 302396481 by Corona688 on Thursday 18th of February 2010 02:23:21 PM
Old 02-18-2010
sed, awk, and other such line-based tools probably aren't going to be much help, they can't handle lines over a relatively small maximum size.

If your shell's read command supports the -d option:
Code:
while read -d '|' DATA
do
        if [ "$DATA" == "MSH" ] || [ "$DATA" == "PID" ] ||
                [ "$DATA" == "PV1" ] || [ "$DATA" == "OBX" ]
        then
                echo -en "\n${DATA}"
        else
                echo -n "|${DATA}"
        fi
done < datafile

echo

 

7 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

member titles

I must have missed it , but what do Junior Memeber/Member mean? is there a reference arounf for the significance of these titles ? Thanks, Hezki (3 Replies)
Discussion started by: me2unix
3 Replies

2. Solaris

new member

As a new member how do I go about asking question to the administrator and other users (1 Reply)
Discussion started by: malusims
1 Replies

3. Post Here to Contact Site Administrators and Moderators

Who is The First Member !!!

Hello Admins Just tell me who is the first member of this forum. Regards, Awadhesh (1 Reply)
Discussion started by: Awadhesh
1 Replies

4. UNIX for Dummies Questions & Answers

new member need help

brothers and sisters iam a new member of your respectful forum hope to accept me i really would like to an expert in unix and linux so please tell me how could ? and what i should have ? i want to make my project in these subject but i dont know what to do and which... (12 Replies)
Discussion started by: yemen
12 Replies

5. UNIX for Dummies Questions & Answers

New Member

HI Bruce from Central PA I have never used Unix but am sick of Microsoft so want to learn it. I use to own a computer store front and training center and stated our with Atari, Commodore and the 1st PC and MS/DOS then Windows BUT sick of Microsoft controlling the computer industry. ... (2 Replies)
Discussion started by: Brucec
2 Replies

6. What is on Your Mind?

new member

i am new member i hope here is good friends (1 Reply)
Discussion started by: annsoo
1 Replies

7. What is on Your Mind?

New member

Hi guys! My name is Leonida and I am new here to this forum. Nice meeting you all. (1 Reply)
Discussion started by: leeoona
1 Replies
GETPTYPE(3)						       MBK UTILITY FUNCTIONS						       GETPTYPE(3)

NAME
getptype - retrieve a ptype from a ptype_list ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in Paris, France. Web : http://asim.lip6.fr/recherche/alliance/ E-mail : alliance-users@asim.lip6.fr SYNOPSYS
#include "mut.h" ptype_list *getptype(pthead,type) ptype_list *pthead; long type; PARAMETERS
pthead Pointer to a ptype list type Flag indicating the pointer owner DESCRIPTION
getptype looks for a ptype element in the list pointed to by pthead. RETURN VALUE
getptype returns a pointer to the ptype that match the type. Be careful, it is not the ptype->DATA that is returned. If no ptype has the given type, then NULL is returned. EXAMPLE
#include "mut.h" #include "mph.h" void get_corner(ptfig, name, x2, y2) phfig_list *ptfig; char *name; int *x2, *y2; { phins_list *i = getphins(ptfig, name); ptype_list *p = getptype(i->USER, (long)PLACEABOX); *x2 = (num_list *)(p->DATA)->DATA; *y2 = (num_list *)(p->DATA)->NEXT->DATA; } SEE ALSO
mbk(1), ptype(3), addptype(3), freeptype(3), delptype(3). BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools. ASIM
/LIP6 October 1, 1997 GETPTYPE(3)
All times are GMT -4. The time now is 08:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy