{"id":17677780,"url":"https://github.com/adamslack/headerreplace","last_synced_at":"2025-03-30T17:47:57.303Z","repository":{"id":122723016,"uuid":"76961179","full_name":"AdamSlack/headerReplace","owner":"AdamSlack","description":"Program used to update the top part of a header in all .SAS files found within a specified directory.","archived":false,"fork":false,"pushed_at":"2017-06-13T12:57:28.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T20:06:13.032Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdamSlack.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-12-20T14:00:20.000Z","updated_at":"2016-12-20T14:02:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"559012fe-6d24-483f-84da-14ccc581cc8d","html_url":"https://github.com/AdamSlack/headerReplace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamSlack%2FheaderReplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamSlack%2FheaderReplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamSlack%2FheaderReplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamSlack%2FheaderReplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdamSlack","download_url":"https://codeload.github.com/AdamSlack/headerReplace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246358251,"owners_count":20764366,"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":[],"created_at":"2024-10-24T07:41:50.195Z","updated_at":"2025-03-30T17:47:57.015Z","avatar_url":"https://github.com/AdamSlack.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"This script is used to update the top part of a header in all .SAS files found within a specified directory.     \nThe purpose of this is to ensure that the header used across all files in a study is consistent and up to date   \nwith the current standard.                                                                                       \n                                                                                                                 \nShould the standard change this script can be used to update all in a given directory to reflect this change.    \n                                                                                                                 \nTo use this script ensure that this .py file has the header(.txt) file that is to be used present in the same    \ndirectory. if there is no header available for this script to use, then it will fail. no changes to files will be\nmade.                                                                                                            \n                                                                                                                 \nthis program will not alter anything in the SAS files, BESIDES the top section of the header. The top section    \ncurrently begins with a line that starts '/*===========' and ends with the first line that starts '___________'  \nshould this change, then the script will need updating.\n\nCan be run from the command line.\nOr utilised from within your own Python Program.\n\nRequired arguments\n  -d or --dir\t\t      The location of the [d]irectory that contains files you want to updated.\n  -m or --multiple\t  The location of a file that contains [m]ultiple directory locations.\n  -f or --file\t\t    The location of the header [f]ile that will be used to replace original headers.\n  \nOptional arguments\n  -v or --versionhistory \tan optional flag that indicates if you want the version history of the file to be cleared.\n  \nExample Usage\n\n  Single Directory:\n    Python headerReplace.py –d=W:\\19950205\\analysis\\final\\figures –f=header.txt -v\n    \n  Multiple Directories:\n    Python headerReplace.py –m=dirs.txt –f=header.txt -v\n      \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamslack%2Fheaderreplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamslack%2Fheaderreplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamslack%2Fheaderreplace/lists"}