Inline Shell Script with a For Loop
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
Howto create an autostartup script for Debian and Ubuntu systems
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
Read More