{"id":29416284,"url":"https://github.com/boden-c/shell-scripts","last_synced_at":"2026-05-08T14:39:39.976Z","repository":{"id":300568853,"uuid":"1005617239","full_name":"Boden-C/shell-scripts","owner":"Boden-C","description":"Various scripts for file management, system configuration, etc.","archived":false,"fork":false,"pushed_at":"2025-07-10T05:02:42.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-10T14:18:34.612Z","etag":null,"topics":["bash","batch","powershell","shell"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Boden-C.png","metadata":{"files":{"readme":"README.md","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,"zenodo":null}},"created_at":"2025-06-20T14:15:15.000Z","updated_at":"2025-07-10T05:02:46.000Z","dependencies_parsed_at":"2025-07-10T14:29:02.427Z","dependency_job_id":null,"html_url":"https://github.com/Boden-C/shell-scripts","commit_stats":null,"previous_names":["boden-c/system-scripts","boden-c/shell-scripts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Boden-C/shell-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boden-C%2Fshell-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boden-C%2Fshell-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boden-C%2Fshell-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boden-C%2Fshell-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Boden-C","download_url":"https://codeload.github.com/Boden-C/shell-scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boden-C%2Fshell-scripts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264878580,"owners_count":23677451,"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":["bash","batch","powershell","shell"],"created_at":"2025-07-11T19:02:40.325Z","updated_at":"2026-05-08T14:39:39.969Z","avatar_url":"https://github.com/Boden-C.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shell Scripts\nVarious scripts that can be easily executed in the shell for file management, system configuration, etc.\n\nAvailable in\n- Linux/MacOS (Bash)\n- Windows (Powershell, Batch)\n\n## Featured: Detect Process Locking File\nThis handy one-liner prompts for your file, automatically gets the process that is locking your file, and prompts to kill it\n\n\nWindows Powershell:\n\n```pwsh\n$f=Read-Host \"File\";$t=\"$env:TEMP\\h.exe\";iwr https://live.sysinternals.com/handle.exe -OutF $t;\u0026 $t -accepteula $f|sls '^(\\S+).*pid: (\\d+)'|%{$n=$_.Matches.Groups[1].Value;$p=$_.Matches.Groups[2].Value;if((Read-Host \"Kill $n ($p)? (y)\")-eq 'y'){kill $p}}\n```\n\n\nWindows Batch (cmd):\n\n```batch\nset /p f=File: \u0026 curl -so %TEMP%\\h.exe https://live.sysinternals.com/handle.exe \u0026 for /f \"tokens=1,3\" %a in ('%TEMP%\\h.exe -accepteula %f% ^| find \"pid:\"') do choice /m \"Kill %a (%b)\" \u0026 if not errorlevel 2 taskkill /f /pid %b\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboden-c%2Fshell-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboden-c%2Fshell-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboden-c%2Fshell-scripts/lists"}