Mercurial > hg > config
comparison bin/log.sh @ 747:a2d199008a83
wtf
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 30 Jun 2015 15:18:12 -0700 |
parents | 6667850817bf |
children |
comparison
equal
deleted
inserted
replaced
740:25622fb5906d | 747:a2d199008a83 |
---|---|
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 |