Hi,
I have a file like this:
v 347.656 -229.91 -677.344v 218.75 -97.6563 -637.29v 171.875 -31.25 -614.025v 113.281 -47.0539 -618.75v 181.448 -183.594 -661.719v 97.6563 27.1677 -708.594v 212.596 -50.7813 -653.906v 155.339 -171.875 -614.844v 62.5 -105.469 -685.376v 292.969 -242.458 -692.969v 105.207 15.625 -642.188v 222.656 -238.281 -655.06v 253.906 -93.6077 -716.406v 210.938 19.5313 -829.752v 43.6444 -164.063 -685.156v 128.906 -78.125 -607.902v 70.3125 -199.219 -650.156v 50.7813 -257.813 -653.715v 199.219 -212.997 -673.438v 54.6875 -57.0634 -696.875v 160.156 -39.0625 -619.608# 13583 elements writtenvn 0.0387398 0.926983 -0.373098vn 0.83673 -0.0302438 0.54678vn 0.0452287 -0.381464 0.923277vn -0.0127617 -0.51591 0.856547vn 0.94213 0.00369861 0.335228vn 0.44112 -0.694334 0.568606vn 0.63703 -0.652082 -0.411074vn 0.498461 -0.851513 -0.162671vn 0.822075 -0.11604 0.557429vn -0.515863 0.473125 0.714169vn 0.46519 -0.762386 0.449852vn -0.478219 0.778441 0.406615vn 0.325099 -0.500174 -0.802581vn 0.0148388 0.0119385 0.999819vn 0.489283 0.429513 0.759026
The numbers of lines are variable. What I need is to identify the "#" character and delete that line and all the lines under this one. Or copy all the lines above this one into a new file.
There is another character "#" in the file if it's a problem.
Best Answer