Skip to content

the thinkpod

where I think out loud

Menu
  • Timeline
Menu

Tag: system management

Count Lines From Standard Input in Shell

Posted on October 16, 2012 by milad

Here’s a script that will help you count the lines of input from the standard input: result=0 while read inputline do result=`expr $result + 1` done echo $result Now, you can find out the number of files in a directory using: ls -1 | count Update As Jeff Harver has kindly pointed out in the…

Read more

Backup Your Linux Machine

Posted on October 16, 2012 by milad

I was up to maintenance of my Debian box, and I came in need of creating and maintaining multiple, date-based backups of the machine. Here is the bash script I wrote to accomplish this. #!/bin/bash #Shell Script to backup desired target verbose=”0″ tarv=”” if test “$1” == “-v”; then verbose=”1″ tarv=”-v” fi if test “$verbose”…

Read more

Having Your Shell Tweet

Posted on October 16, 2012 by milad

Have you ever wanted to have your *nix shell access Twitter? Using the RESTful API, you can achieve this. However, you would need to set up your instance as an app and then configure the API keys and all the what-nots. I personally try to avoid such hassle whenever possible. So, I got this shell…

Read more

I’m a tinkerer and engineer. Here, I write about all sorts of things.

Tags

administration algorithms application bash command blog book client clrs code cormen courses Data Structures domain eyeos firefox google google interview google interview series 1 google interview series 2 hello world host interview interview preparation java job learning linux mac phone screen poem Poetry preparation programming Projects repository Review script shell spring synopsis system management user management video windows 7 writing

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2019 the thinkpod | Built using WordPress and Responsive Blogily theme by Superb