annotate bin/log.sh @ 788:fa3ad63ec3a3
https://github.com/novas0x2a/config-files/blob/master/.gitconfig#L89
author |
Jeff Hammel <k0scist@gmail.com> |
date |
Wed, 28 Sep 2016 16:42:20 -0700 |
parents |
6667850817bf |
children |
|
rev |
line source |
744
|
1 #!/bin/bash
|
|
2
|
|
3 BASEDIR=${HOME}/cisco/log
|
|
4 STAMP=$(date +"%Y%m%d")
|
|
5 FILENAME="${BASEDIR}/${STAMP}.txt"
|
|
6
|
|
7 if [[ -e "${FILENAME}" ]]
|
|
8 then
|
|
9 echo "emacs -nw +`wc -l ${FILENAME}` ${FILENAME}"
|
|
10 emacs -nw +`wc -l "${FILENAME}"`
|
|
11 else
|
|
12 emacs -nw ${FILENAME}
|
|
13 fi
|