- Thread Author
- #1
Is it possible to alter 2 lines in notepad using edit/replace?
I have a number of files, gcodes, that are in the format
G00 Xnn Ynn
G01 Xnn Ynn
G01 Xnn Ynn
G00 Xnn Ynn
G01 Xnn Ynn
G00 Xnn Ynn etc
I would like to finish up with a line before each G00 Xnn Ynn line with G00 Z2 and before each G01 Xnn Ynn line with G00 Z0 like this
G00 Z2
G00 Xnn Ynn
G00 Z0
G01 Xnn Ynn etc
Is this possible, maybe by using something in the replace box like G00 Z2 /n G00 Xnn Ynn where the /n is 'carriage return - line feed'?
I could do it manually but some of the files are hundreds of lines long.
				
			I have a number of files, gcodes, that are in the format
G00 Xnn Ynn
G01 Xnn Ynn
G01 Xnn Ynn
G00 Xnn Ynn
G01 Xnn Ynn
G00 Xnn Ynn etc
I would like to finish up with a line before each G00 Xnn Ynn line with G00 Z2 and before each G01 Xnn Ynn line with G00 Z0 like this
G00 Z2
G00 Xnn Ynn
G00 Z0
G01 Xnn Ynn etc
Is this possible, maybe by using something in the replace box like G00 Z2 /n G00 Xnn Ynn where the /n is 'carriage return - line feed'?
I could do it manually but some of the files are hundreds of lines long.
 
 
		 
 
		 
 
		