{"id":22419080,"url":"https://github.com/en10/bash","last_synced_at":"2025-07-20T06:32:09.946Z","repository":{"id":75872093,"uuid":"80346258","full_name":"EN10/Bash","owner":"EN10","description":"Bash Examples","archived":false,"fork":false,"pushed_at":"2019-01-02T05:15:12.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T04:32:08.642Z","etag":null,"topics":["bash","bash-script","bash-scripting"],"latest_commit_sha":null,"homepage":"","language":null,"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/EN10.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-29T13:02:48.000Z","updated_at":"2019-01-02T05:15:13.000Z","dependencies_parsed_at":"2023-02-24T10:15:46.862Z","dependency_job_id":null,"html_url":"https://github.com/EN10/Bash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EN10/Bash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EN10%2FBash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EN10%2FBash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EN10%2FBash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EN10%2FBash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EN10","download_url":"https://codeload.github.com/EN10/Bash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EN10%2FBash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266076350,"owners_count":23872741,"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","bash-script","bash-scripting"],"created_at":"2024-12-05T16:14:06.396Z","updated_at":"2025-07-20T06:32:09.938Z","avatar_url":"https://github.com/EN10.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bash Examples\n\nCreate file1\n-\n    touch file1\n\nAppend a file1:  \n-\n    echo \"text\" \u003e\u003e file1.txt\n\nFind File\n-\n    find / -name *filename*\n\nFile Word Frequency\n-\n    cat file | tr ' ' '\\n' | sort | uniq -c\ntr ' '  // remove multiple spaces   \n'\\n'    // output word per line\n\nBash Shortcut\n-\nRun file1:     \n\n    . file1\n\nFolder Size: \n-\nHuman readable, Max depth = 1, Sort Human readable\n\n    sudo du -hd1 / | sort -h\n\nFile Size:\n-\nSorted size human\n\n    ls -Ssh /\n\nShorten Path:   \n-\n    PROMPT_DIRTRIM=1\n\nCompress with `p7zip-full`\n-\n    7z a -mx9 -v100m compressedfilename filetocompress\n\n`-mx9` compression level \"ultra\"  \n`-v100m`  spilt into 100MB volumes\n\nExtract 7z \n-\n    7z e filename.7z\n\nExtract .tar.gz:    \n-\n    tar -xvzf filename.tar.gz\n\nFind Installed Package\n-\n    sudo apt list --installed | grep -i lx\n\nInstalled Package By Size\n-\n    dpkg-query -Wf '${Installed-Size}\\t${Package}\\n' | sort -n\n    \nPurge Removed Packages\n-\n    dpkg --list |grep \"^rc\" | cut -d \" \" -f 3 | xargs sudo dpkg --purge\n\nRender Markdown in Terminal\n-\n    pandoc README.md | lynx -stdin\n    pandoc -t plain README.md | less\n\nSlim Git \n-\n\nLight Git\n\n    git clone --depth 1 https://github.com/EN10/chatbot.git\n    \nFiles Only No Git\n\n    svn export https://github.com/EN10/chatbot/trunk\n\nOnly Download Specific Folder   \nReplace `tree/master` with `trunk`\n\n    svn export https://github.com/GoogleCloudPlatform/python-docs-samples/trunk/appengine/standard/ndb/overview\n\nBash ~ on windows:\n-\n    %localappdata%\\Lxss\\home\n    \nCommand at Interval: \n-\n\n    echo \"date \u003e\u003e time\" \u003e time.sh\n    watch -n 10 bash time.sh","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fen10%2Fbash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fen10%2Fbash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fen10%2Fbash/lists"}