xref: /glogg/tools/genlogs.sh (revision 6e2e573c451ec24d720c967fab68538eaa3f3ab5)
1649b599dSNicolas Bonnefon#!/bin/bash
2649b599dSNicolas Bonnefon
3649b599dSNicolas Bonnefon# Generate a set of test logs
4649b599dSNicolas Bonnefon
5649b599dSNicolas Bonnefon# 5 million lines - 1, 429Mb
6649b599dSNicolas Bonnefonperl -e 'for ($i = 0; $i < 4999999; $i++)
7649b599dSNicolas Bonnefon    { printf "LOGDATA is a part of LogCrawler, we are going to test it thoroughly, this is line %06d\n", $i; }'\
8649b599dSNicolas Bonnefon    >/tmp/verybiglog.txt
9*6e2e573cSNicolas Bonnefon
10*6e2e573cSNicolas Bonnefon# 100 million lines - 1, Mb
11*6e2e573cSNicolas Bonnefon# perl -e 'for ($i = 0; $i < 100000000; $i++)
12*6e2e573cSNicolas Bonnefon#     { printf "LOGDATA is a part of LogCrawler, we are going to test it thoroughly, this is line %07d\n", $i; }'\
13*6e2e573cSNicolas Bonnefon#     >~/stupidlybiglog.txt
14*6e2e573cSNicolas Bonnefon
15