annotate bin/log.sh @ 770:cb1b91c6bceb
example program for HTML -> text conversion using only HTMLParser
author |
Jeff Hammel <k0scist@gmail.com> |
date |
Mon, 07 Mar 2016 12:22:04 -0800 |
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
|