cut and append 
Author Message
 cut and append

How can I cut the 3rd colomn(hex values) of this input and place it on
every 3rd line?

ASD sdd1 10
XXW sft1 FF

JQW sde2 09
WQZ sdg2 de

out:

ASD sdd1 10
XXW sft1 FF
10      FF

JQW sde2 09
WQZ sdg2 de
09      de

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Wed, 05 Mar 2003 03:00:00 GMT  
 cut and append

Quote:

>How can I cut the 3rd colomn(hex values) of this input and place it on
>every 3rd line?

>ASD sdd1 10
>XXW sft1 FF

>JQW sde2 09
>WQZ sdg2 de

>out:

>ASD sdd1 10
>XXW sft1 FF
>10  FF

>JQW sde2 09
>WQZ sdg2 de
>09  de

1
NR % 3 == 2 { print old3,$3 }
{ old3 = $3 }


Wed, 05 Mar 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. To cut or not to cut?

2. Append dosn't Append!

3. APPEND FROM lan = no records appended

4. Time of append to time I see append

5. Append alias for Array.append?

6. Windows cut/copy/paste keys

7. Cut and paste in IBM APL2 for Windows

8. Please help find online Penfield paper re Branch Cuts

9. How tt cut and paste in apl environment

10. Fonts and cut/paste Mainframe to PC

11. cut leading and/or following blanks

12. 'cut' is not clearcut to me

 

 
Powered by phpBB® Forum Software