CWGEN(1)
π CWGEN(1) β the manual page, but make it a group chat π
okay bestie, welcome to cwgen, section 1 of the General Commands Manual. it's a little tool that spits out random character groups so you can practice your Morse code. yes, that Morse code. the beepy one. π
β¨ NAME β¨
cwgen β generate groups of random characters for Morse code practice π¦
πΈ SYNOPSIS πΈ
cwgen [-g --groups=groups] [-n --groupsize=groupsize]
[-n --groupsize=group_min-group_max] [-r --repeat=repeat]
[-x --limit=limit] [-c --charset=charset] [-h --help] [-V --version]
so, if you've got cwgen installed on a GNU/Linux system, it's bilingual β it understands both the short form and the long form command line options. π
but if it's installed on some other operating system, it might only understand the short form options. that's just how it is, no cap.
also!! options can be predefined in the environment variable CWGEN_OPTIONS. if that's defined, those options get used first, and then command line options take precedence. so the command line always gets the last word. main character energy, honestly. π
π DESCRIPTION π
cwgen is the simple way to generate groups of random characters that you can pipe straight into cw. the command line options control the group size, the number of groups, and the character set the random characters get pulled from. that's the whole vibe. π«Ά
π COMMAND LINE OPTIONS π
here's everything cwgen understands. heads up: the long form options might not be available in non-LINUX versions, so if you're on some other system and the long form ghosts you, that's why. π
-g,--groupsβ how many groups of random characters to generate. default is128. π₯-n,--groupsizeβ the number of random characters in each group. give it one single value and every group is that size. give it a dash-separated pair of values and it's a range βcwgenwill randomly size each group somewhere betweengroup_minandgroup_max. default is5. β¨-r,--repeatβ how many times to repeat each group. default is0, which means each group gets printed just once. periodt.-x,--limitβ an upper limit on the number of characters printed. this one is lowkey a lifesaver when you're using random group sizes, because it guarantees you a given amount of practice text. default is0, meaning there's no upper limit at all. π-c,--charsetβ the character set the random characters are selected from. default value is'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'. that's the alphabet in caps plus the digits, in case you were wondering. π-h,--helpβ help.-V,--versionβ version.
π EXAMPLES π
let's say you want 20 groups of 10 characters from the set EISH5, and you want to actually hear them as Morse code. both the short-form and long-form versions are here, because we're thorough like that:
cwgen -g 20 -n 10 -c "EISH5" | cw -w 25 -t 850
cwgen --groups=20 --groupsize=10 --charset="EISH5" | cw --wpm=25
--tone=850
look at that pipe. chef's kiss. π§
β SEE ALSO β
the man pages for cw(7,LOCAL), libcw(3,LOCAL), cw(1,LOCAL), cwcp(1,LOCAL), and xcwcp(1,LOCAL). go read them, they're iconic too. π
that's the whole page, bestie!! this was cwgen ver. 3.6.1 from the CW Tutor Package, and yeah, it lives in section CWGEN(1) of the manual. now go make some beeps. ππβ¨
π¦ where this page comes from
- debian trixie: cw 3.6.1-2+b1 Β· GPL-2.0-or-later
- fedora 43: unixcw 3.6.1-6.fc43 Β· GPL-2.0-or-later
- fedora 43: unixcw 3.6.1-6.fc43 Β· GPL-2.0-or-later
- fedora 44: unixcw 3.6.1-7.fc44 Β· GPL-2.0-or-later
- fedora 44: unixcw 3.6.1-7.fc44 Β· GPL-2.0-or-later
- nixos 26.05: unixcw 3.6.1
- nixpkgs unstable: unixcw 3.6.1
- ubuntu questing: cw 3.6.1-2
- ubuntu resolute: cw 3.6.1-2build1 Β· GPL-2.0-or-later
- ubuntu stonking: cw 3.6.1-2build1 Β· GPL-2.0-or-later
- Copyright (C) 2001-2006 Simon Baldwin (simon_baldwin@yahoo.com)
- Copyright (C) 2011-2023 Kamil Ignacak (acerion@wp.pl)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms