{"id":16803518,"url":"https://github.com/sjmulder/dated","last_synced_at":"2025-04-11T00:43:42.574Z","repository":{"id":136506240,"uuid":"156607702","full_name":"sjmulder/dated","owner":"sjmulder","description":"Add a timestamp to every line of a stream","archived":false,"fork":false,"pushed_at":"2021-07-25T21:20:29.000Z","size":25,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T00:43:34.576Z","etag":null,"topics":["c","cli","textproc","unix"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sjmulder.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-07T21:01:45.000Z","updated_at":"2024-05-21T22:08:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ee89f41-c035-4b49-9384-0eb82c9f27b5","html_url":"https://github.com/sjmulder/dated","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjmulder%2Fdated","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjmulder%2Fdated/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjmulder%2Fdated/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjmulder%2Fdated/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjmulder","download_url":"https://codeload.github.com/sjmulder/dated/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322604,"owners_count":21084336,"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","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":["c","cli","textproc","unix"],"created_at":"2024-10-13T09:42:48.811Z","updated_at":"2025-04-11T00:43:42.562Z","avatar_url":"https://github.com/sjmulder.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"dated\n=====\n[![Build status](\n https://builds.sr.ht/~sjmulder/dated.svg)](\n https://builds.sr.ht/~sjmulder/dated)\n\nAdd a timestamp to every line of a stream:\n\n... | **dated** [**-f** *format*]\n\nDescription\n-----------\n**dated** copies standard input to standard output, prepending the date and\ntime to every line.\n\nThe **-f** option changes the prefix format string to format, which is passed\nto [strftime(3)](http://man.openbsd.org/strftime.3). The default is \"%x %X \":\nthe local date notation, a space, the local time notation, and another space.\n\nNote: there is no way to get subsecond precision, a limitation of\n[strftime(3)](http://man.openbsd.org/strftime.3).\n\nExamples\n--------\nWatch a file with [tail(1)](http://man.openbsd.org/tail.1) and see when lines\nwere added:\n\n    $ tail -f test.txt | dated\n    11/07/18 21:28:31 Hello\n    11/07/18 21:28:40 World!\n\nChange the output format:\n\n    $ tail -f test.txt | dated -f \"[%H:%M] \"\n    [21:32] Hello\n    [21:33] World!\n\nRunning\n-------\nShould work on any Unix, including Linux and macOS.\n\nMac users can install from\n[my Homebrew tap](https://github.com/sjmulder/homebrew-tap)\n\n    brew install sjmulder/tap/dated\n\nTo compile, install and uninstal from source:\n\n    make\n    make install   [DESTDIR=] [PREFIX=/usr/local] [MANPREFIX=PREFIX/man]\n    make uninstall [DESTDIR=] [PREFIX=/usr/local] [MANPREFIX=PREFIX/man]\n\nAuthors\n-------\nSijmen J. Mulder (\u003cik@sjmulder.nl\u003e)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjmulder%2Fdated","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjmulder%2Fdated","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjmulder%2Fdated/lists"}