File: test-numrandom.sh

package info (click to toggle)
num-utils 0.5-15
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 984 kB
  • sloc: perl: 1,266; sh: 113; makefile: 94
file content (14 lines) | stat: -rwxr-xr-x 250 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# default test for numrandom
numrandom | numgrep /0..100/


# default test using parameters
myregex=/0..100/
numrandom $myregex | numgrep $myregex


# just another test
myregex=/-10000000..10000000/
numrandom $myregex | numgrep $myregex