Collection of things I find useful.
This will look in the current folder (and sub-directories) for that string in a name of a file.
Useful if you want to keep the folder hierarchy when you’re copying. (For instance, if you have two files called ‘temp_calib0.inc’ and they’re in different folders. If you copy them over to one location, you need to either rename or put them in different folders).
- Note that this uses a txt file to feed in the files you want to copy.
- Note the direct path used for the location to copy to (use npwd to get this, handy for passing between different locations, Bangalore/Limerick/etc).
You use your mark tool (‘C-Spc’) to highlight a box area and then use the command ‘C-x r k’ to remove this square/rectangle.
Don’t worry about the mark tool highlighting the edges of lines in between, they won’t be clipped.
Handy way to append a flag to the end of a line.
Command: M-< M-x replace-regexp RET $ RET a RET
This will place an ‘a’ at the end of all lines. The $ matches the end-of-line character.
Also one of the other answers shows how to use key-macros so could be handy later.