Posts Tagged bash
Simple but effective bash script [network adapters]
Posted by LuGru in Programing on 17/03/2009
In some cases, where for example particular sets of commands is frequently used, really handy “tool” to simplify life can be used. I talk here about bash scripting.
What script does? To put it simple, scripts allows to write a sets of command in “specific way” that will be interpreted by shell (in this case “/bin/bash”). These scripts can perform from simple task like rm’ing temp files to really advanced stuff, only limitation here is a imagination and programing skills.
Below is my sample script that I use to manage my network connections. I wrote it because I have a need to change my network settings depending on my location or ‘particular needs’ and doing it by hand can be frustrating and simply takes too long. Script is fairly simple yet effective. Read the rest of this entry »