Skip to content

Dipin Krishna

I love to code. If you feel the same, then i have some cool codes for you. They are simple but good to get started.

  • Home
  • Blog
  • Privacy Policy
  • About
  • Contact
  • Home
  • Blog
  • Privacy Policy
  • About
  • Contact

Category Archives: Script

Home/Archive Category: Script

Howto create an autostartup script for Debian and Ubuntu systems

Sep 18, 2009Dipin Krishna2 Commentsautostartup, Script

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

Inline Shell Script with a For Loop

Nov 19, 2008Dipin Krishnafor loop, Inline, Script, Shell

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

Read More

Search

Theme by Think Up Themes Ltd. Powered by WordPress.