{"id":22799102,"url":"https://github.com/thomd/random-files-generator","last_synced_at":"2025-07-24T14:11:07.121Z","repository":{"id":10630453,"uuid":"12854116","full_name":"thomd/random-files-generator","owner":"thomd","description":"files(1) is a random files generator for the bash console","archived":false,"fork":false,"pushed_at":"2013-11-21T22:43:32.000Z","size":412,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T19:14:51.423Z","etag":null,"topics":["cli"],"latest_commit_sha":null,"homepage":"https://thomd.github.io/random-files-generator","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thomd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-15T23:04:55.000Z","updated_at":"2022-09-19T12:06:59.000Z","dependencies_parsed_at":"2022-09-08T00:12:35.149Z","dependency_job_id":null,"html_url":"https://github.com/thomd/random-files-generator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/thomd/random-files-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Frandom-files-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Frandom-files-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Frandom-files-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Frandom-files-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomd","download_url":"https://codeload.github.com/thomd/random-files-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomd%2Frandom-files-generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266854498,"owners_count":23995486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli"],"created_at":"2024-12-12T07:07:54.565Z","updated_at":"2025-07-24T14:11:07.067Z","avatar_url":"https://github.com/thomd.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# files(1)\n\n`files(1)` is a random files generator for the bash console.\n\n[![Build Status](https://travis-ci.org/thomd/random-files-generator.png)](https://travis-ci.org/thomd/random-files-generator)\n\nDo you need to generate a bunch of random files with random names and\nrandom content? Think about experimenting with [git][1] or testing a [rsync][2] script.\n\n![example of files(1) usage][img1]\n\n`files(1)` uses random words from a wordlist for naming files and\nfolders. The content of each file is the same as the filename.\n\nAlternatively you can provide words to use as command arguments like so:\n\n    $ files 5 foo bar baz\n\nThis generates five files with 'foo', 'bar' and 'baz' as names for the\nfiles and the content.\n\n## Usage\n\n    Usage: files [options] [number ...] [word ...]\n\n    Options:\n\n      -f, --wordfile \u003cfile\u003e    Location of a wordfile\n      -e, --extension \u003cext\u003e    Extension of generated files\n      -c, --content            Add one line of content to generated files\n      -r, --remove             Remove one line of content from generated files\n      -d, --delete             Delete all generated files\n      -l, --list               List generated files\n      -s, --session            Start a new session\n      -v, --version            Output version\n      -h, --help               This message\n\nPaths of generated files are stored in a simple text file `.files` in\nthe current directory (you should `echo \".files\" \u003e\u003e ~/.gitignore`). \nThis list is called a **files session**. All files generated within a \nsession can be deleted, listed or added with more content.\n\nOut-of-the-box `files(1)` uses the standard OSX wordlist\n`/usr/share/dict/words`. If this wordlist does not exist and no words are \nexplicitly given as command arguments, `files(1)` uses bare letters for \nnaming files and folders.\n\nYou may provide an own wordlist via an environment variable `WORDLIST`\n\n    $ export WORDLIST=~/.my_wordlist\n\nor provide words via STDIN:\n\n    $ cat wordlist.txt | xargs files 10\n\nThe three numerical key parameter for generating files are in this\norder:\n\n* number of files\n* number of folders\n* number of files to be moved into this folders\n\nAll three parameter are optional (see Examples).\n\n## Examples\n\n### Generating new files\n\nGenerate a random number of files and folders:\n\n    $ files\n\nGenerate a random number of files and folders using the words 'foo', 'bar' \u0026 'baz':\n\n    $ files foo bar baz\n\nGenerate 10 files in current directory:\n\n    $ files 10\n\nGenerate 10 files of which a random number of them are moved into 2 folders:\n\n    $ files 10 2\n\nGenerate 10 files of which 6 files are randomly moved into 2 folders:\n\n    $ files 10 2 6\n\nGenerate 10 files using the words 'foo', 'bar' \u0026 'baz':\n\n    $ files 10 foo bar baz\n\nGenerate 10 files with extension 'txt' using the words 'foo', 'bar' \u0026 'baz':\n\n    $ files 10 -e txt foo bar baz\n\nGenerate files and folders using words from `mywords.txt`:\n\n    $ files -f mywords.txt\n    $ cat mywords.txt | xargs files\n\n### Manipulation of generated files\n\nAppend one line of random content to all generated files of a session:\n\n    $ files -c\n\nAppend six lines of random content to all generated files of a session:\n\n    $ files -6c\n\nRemove last line of content of all generated files of a session:\n\n    $ files -r\n\nAppend last six lines of content of all generated files of a session:\n\n    $ files -6r\n\nDelete all generated files of a session:\n\n    $ files -d\n\nStart a new session (if no session exist, a new one is created):\n\n    $ files -s\n\n## Help\n\nFind help on man page via `man files` or check usage info via `files -h`.\n\n## Installation\n\nUse `Makefile` for installation. First run tests, then install binary\nand man page. Binary is installed into `/usr/local/bin`.\nInstall the bash testing framework [bats][3] before running the tests.\n\n    make test\n    make install                              # installs binary and man page\n\nTests are green on OSX and Debian Linux (using [Vagrant][4]).\n\nYou may also install binary and man page into your home directory using \nthe `DESTDIR` environment variable:\n\n    mkdir -p ~/bin ~/share/man\n    export PATH=~/bin:$PATH\n    unset MANPATH \u0026\u0026 export MANPATH=~/share/man:$(manpath)\n    make DESTDIR=~ install\n\nFor faster typing of the `files` command (at least for me), you might set a alias in your `~/.bashrc`:\n\n    alias fls=files\n\n## License\n\n© 2013 Thomas Duerr. files(1) is released under an MIT-style license\n\n[1]: http://git-scm.com/\n[2]: http://man.cx/rsync(1)\n[3]: https://github.com/sstephenson/bats\n[img1]: https://raw.github.com/thomd/random-files-generator/images/files.png\n[4]: http://docs.vagrantup.com/v2/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomd%2Frandom-files-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomd%2Frandom-files-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomd%2Frandom-files-generator/lists"}