(Video materials in preparation)
lcat : Repeated output of file (looping cat)
Usage : lcat <n> file1 file2 ...
Version : Tue Jan 9 09:02:34 JST 2024
Edition : 2
The lcat command "cat"s the specified file <n> times.
$ cat data
1 2 3 4
$ lcat 5 data
1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4
You can specify multiple files. If you use "-" as the file name,
the command reads from standard input.
$ cat data
1 2 3 4
$ cat data2
a b c d
$ echo w x y z | lcat 2 data - data2
1 2 3 4
w x y z
a b c d
1 2 3 4
w x y z
a b c d