dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

a+ (228B)


      1 #!/bin/sh
      2 
      3 if [ $# -gt 1 ]
      4 then
      5 	echo "Too many arguments" >&2
      6 	exit 1
      7 elif [ $# -eq 1 ]
      8 then
      9 	i=0
     10 	token=''
     11 	while [ $i -lt $1 ]
     12 	do
     13 		token="$token "
     14 		i=$(($i + 1))
     15 	done
     16 else
     17 	token='	'
     18 fi
     19 
     20 sed "s/^/$token/;s/^[ 	][ 	]*$//"