annotate bin/log.sh @ 869:ca1fb54c03ee
https://coderwall.com/p/7aymfa/please-oh-please-use-git-pull-rebase
author |
Jeff Hammel <k0scist@gmail.com> |
date |
Mon, 10 Sep 2018 10:23:50 -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
|