60 likes | 174 Vues
Learn to make 3D images using Unix commands and GLG410 environment. Set up, process data, and transfer files with ease.
E N D
X, Y, Z,A0.9961,14.671,12.409,20.3191,1.6958,24.077,80.1797,11.501,15.133,32.7960,14.565,6.2765,12.6589,15.011,6.1656,11.7052,12.376,7.1086,12.6402,4.9692,15.413,70.8833,10.468,7.9641,10.0428,0.9109,16.076,70.5855,10.315,11.851,20.1297,7.0747,5.1924,5 Columns Rows Example Data File
point:0.9961 14.671 12.409 point:0.3191 1.6958 24.077 point:0.1797 11.501 15.133 point:2.7960 14.565 6.2765 point:2.6589 15.011 6.1656 point:1.7052 12.376 7.1086 point:2.6402 4.9692 15.413 point:0.8833 10.468 7.9641 point:0.0428 0.9109 16.076 point:0.5855 10.315 11.851 Unix does this HoloDraw does this Processing this Data File transfer to PC
Login and Setup >/export/home4/msimkin/shared/setup ---- You are now entering the GLG410 environment ---- $ pwd /export/home4/msimkin/shared/yourname $
Make Your Own 3D Image $ cat > ./hello.draw text3:0 0 0,Hello line:0 0 0,5 5 5 [control-D] $ drawbbox.pl < ./hello.draw > ./hello.box Bounding box is 0 0 0 to 5 5 5 TickFreqX=1,TickLenX=0.5 TickFreqY=1,TickLenY=0.5 TickFreqZ=1,TickLenZ=0.5 $ cat ./hello.draw ./hello.box | drawwrl.pl > ./hello.wrl $
awk ' BEGIN { FS = ":" } { print $5 } ' < /etc/passwd Copy these spaces and quotes exactly What is your delimiter? Generic “awk” recipe Use “awk” for data that has a delimiter What do you want to output? Where is your data coming from?
vi editor has “modes” i Command Mode Text Input Mode Esc