3 Use same langname as my entry - 'yes' and 'head' are in coreutils
source | link

BASHBash + GNU coreutils, 26 24 - 25 = 1 -1 byte

The x file:

yes|head -c$[24*${1:-2}]

(no trailing newline)

Running:

$ bash x 1 | wc -c
24
$ bash x | wc -c
48
$ bash x 3 | wc -c
72

Old version with 26 bytes:

The x file:

yes|head -c$((26*${1:-2}))

(no trailing newline)

BASH, 26 24 - 25 = 1 -1 byte

The x file:

yes|head -c$[24*${1:-2}]

(no trailing newline)

Running:

$ bash x 1 | wc -c
24
$ bash x | wc -c
48
$ bash x 3 | wc -c
72

Old version with 26 bytes:

The x file:

yes|head -c$((26*${1:-2}))

(no trailing newline)

Bash + GNU coreutils, 26 24 - 25 = 1 -1 byte

The x file:

yes|head -c$[24*${1:-2}]

(no trailing newline)

Running:

$ bash x 1 | wc -c
24
$ bash x | wc -c
48
$ bash x 3 | wc -c
72

Old version with 26 bytes:

The x file:

yes|head -c$((26*${1:-2}))

(no trailing newline)

2 ((...)) -> [...] ;-)
source | link

BASH, 2626 24 - 25 = 11 -1 byte

The x file:

yes|head -c$((26*$c$[24*${1:-2}))]

(no trailing newline)

Running:

$ bash x | wc -c
52
$ bash x 1 | wc -c
2624
$ bash x 2 | wc -c
5248
$ bash x 3 | wc -c
7872

Old version with 26 bytes:

The x file:

yes|head -c$((26*${1:-2}))

(no trailing newline)

BASH, 26 - 25 = 1 byte

The x file:

yes|head -c$((26*${1:-2}))

(no trailing newline)

Running:

$ bash x | wc -c
52
$ bash x 1 | wc -c
26
$ bash x 2 | wc -c
52
$ bash x 3 | wc -c
78

BASH, 26 24 - 25 = 1 -1 byte

The x file:

yes|head -c$[24*${1:-2}]

(no trailing newline)

Running:

$ bash x 1 | wc -c
24
$ bash x | wc -c
48
$ bash x 3 | wc -c
72

Old version with 26 bytes:

The x file:

yes|head -c$((26*${1:-2}))

(no trailing newline)

1
source | link

BASH, 26 - 25 = 1 byte

The x file:

yes|head -c$((26*${1:-2}))

(no trailing newline)

Running:

$ bash x | wc -c
52
$ bash x 1 | wc -c
26
$ bash x 2 | wc -c
52
$ bash x 3 | wc -c
78