File: generata-big-data-tab.sh

package info (click to toggle)
copyq 13.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,964 kB
  • sloc: cpp: 63,306; sh: 992; xml: 452; python: 293; ruby: 152; makefile: 27; javascript: 25
file content (14 lines) | stat: -rwxr-xr-x 226 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
set -euo pipefail

COPYQ=${COPYQ:-copyq}
session=test
tab=BIG

items=10000
size=50000

for x in $(seq $items); do
    echo $x
    head -c $size /dev/random | base64 | "$COPYQ" -s $session tab $tab insert -1 -
done