Howto create an autostartup script for Debian and Ubuntu systems

On September 18, 2009, in autostartup, Script, by Dipin Krishna

You can make one autostartup script for ubuntu(debian) easily, and put commands to be started up automatically at boot. Here’s what you have to do: sudo nano /etc/init.d/local.startup You can name the new file whatever you want, but in this example i haveused local.startup. Type #!/bin/sh on the first line of the file.Now type your […]


Inline Shell Script with a For Loop

On November 19, 2008, in for loop, Inline, Script, Shell, by Dipin Krishna

Often I’m asked how to traverse a list of items in a file. You can easily go through a list of items using a for loop. Here’s an example of copying selected contents of originalDir to destinationDir via the command line. #sh #for i in `cat /home/esofthub/mylist.dat` #do #cp -pr /originalDir/$i /destinationDir/. #echo $i done #done […]