Writing your first shell script

Shell scripts are a simple way of completing (repetitive) tasks on the command line, much like many programming languages will be used. You will see ~ something — ignore the ‘~’ this is to signify that it is a command entered onto the command line itself. Writing the code ~ vi helloworld.sh #!/bin/bash # My [...]

Quick text replacement Vi tip

Vim logo

This came about as i wanted to replace just a few lines of text in vi. Work out what range of lines to select :set number Find the lines you wish to modify 35 #Hosts per intl 36 uk.dev.site.com 37 de.dev.site.com 38 es.dev.site.com 39 it.dev.site.com 40 fr.dev.site.com Do the replacement [...]