<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-bidi-font-family: Mangal;">Steps in building the Macros:</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-bidi-font-family: Mangal;">1. In Terminal enter vi tushar.txt</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-bidi-font-family: Mangal;">2. Type i followed by 1</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-bidi-font-family: Mangal;">3. Press \[Esc\] key (to enter into command mode)</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-bidi-font-family: Mangal;">4. Press q followed by a ( q indicates start recording )</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-bidi-font-family: Mangal;"> ( a indicates to store the recording in register a )</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-bidi-font-family: Mangal;">5. Press \[Esc\] then yy followed by p ( yy will copy the current line)</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-bidi-font-family: Mangal;"> ( p will paste the line was just copied )</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-bidi-font-family: Mangal;">6. Press a ( Incremnt the number )</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-bidi-font-family: Mangal;">7. Press q ( Stop recording )</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-bidi-font-family: Mangal;">8. Type @a ( To play recorded macro )</span>
<span style="font-family: "Arial","sans-serif"; font-size: 11.0pt; mso-bidi-font-family: Mangal;">9. Type 10@a ( To play recorded macro 10 times )</span>
Leave a comment