projects
/
feisty_meow.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added xml as a reasonable extension to spacem
[feisty_meow.git]
/
scripts
/
system
/
apache_log_sorter.sh
1
#!/bin/sh
2
3
if [ ! -f $1 ]; then
4
echo "Usage: $0 "
5
echo "This script needs a file to sort and a new name for the file after sorting."
6
exit 1
7
fi
8
9
echo "Sorting $1 into $2"
10
11
sort -t ' ' -k 4.9,4.12n -k 4.5,4.7M -k 4.2,4.3n -k 4.14,4.15n -k 4.17,4.18n -k 4.20,4.21n $1 > $2
12
13