File: getweblogs

package info (click to toggle)
logtools 0.13d
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 224 kB
  • ctags: 109
  • sloc: cpp: 1,104; sh: 116; makefile: 77
file content (9 lines) | stat: -rwxr-xr-x 251 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
#!/bin/bash
# get all logs in sorted order
# first parameter is the directory name
# second parameter is the flag file name

if [ ! -f $1/$2 ]; then
  touch 1101000072 $1/$2
fi
/usr/bin/clfmerge `find $1 -name "access.*" \! -name "*.gz" -newer $1/$2`