Permalink
Browse files

Add bin/line.

  • Loading branch information...
1 parent 2a5d8cd commit c60b6f781281174e1191e1c01965daf5bf2f0d4f @mat committed Mar 31, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 bin/line
View
@@ -0,0 +1,10 @@
+#!/bin/bash
+# From https://github.com/garybernhardt/dotfiles/blob/master/bin/line
+
+if [ $1 = '' ]; then
+echo "Usage: $0 line_number"
+fi
+
+line_number=$1
+
+head -$line_number | tail -1

0 comments on commit c60b6f7

Please sign in to comment.