There are a lot of high efficient edit functionalities incuded in Emacs. This section list some of them.
Applying a keyboard macro to a region
Share variable between shell and awk script
Use variable in awk script
Using this command, we can execute some non-interactive batch edit specified by
ACTION on lines specified by
RANGE of file(or you may specify more than one file by wildcard of bash).
Merge two lines into one line