{"id":23402604,"url":"https://github.com/martincastroalvarez/filesystem-tools","last_synced_at":"2026-04-09T21:32:58.418Z","repository":{"id":60184161,"uuid":"541293320","full_name":"MartinCastroAlvarez/filesystem-tools","owner":"MartinCastroAlvarez","description":"File system management tools integrated with AWS S3","archived":false,"fork":false,"pushed_at":"2023-08-05T15:13:43.000Z","size":1245,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T22:25:08.045Z","etag":null,"topics":["aws","bash","filesystem","linux","s3"],"latest_commit_sha":null,"homepage":"","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/MartinCastroAlvarez.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}},"created_at":"2022-09-25T19:57:09.000Z","updated_at":"2023-08-05T15:23:24.000Z","dependencies_parsed_at":"2023-01-27T08:15:15.872Z","dependency_job_id":null,"html_url":"https://github.com/MartinCastroAlvarez/filesystem-tools","commit_stats":null,"previous_names":["martincastroalvarez/filesystem-bin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MartinCastroAlvarez/filesystem-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Ffilesystem-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Ffilesystem-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Ffilesystem-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Ffilesystem-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MartinCastroAlvarez","download_url":"https://codeload.github.com/MartinCastroAlvarez/filesystem-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Ffilesystem-tools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259833158,"owners_count":22918852,"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":["aws","bash","filesystem","linux","s3"],"created_at":"2024-12-22T12:29:37.625Z","updated_at":"2026-04-09T21:32:53.384Z","avatar_url":"https://github.com/MartinCastroAlvarez.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File System Management\n\n![wallpaper](./wallpaper.jpg)\n\n## Local File System\n\n#### Extracting the direcory name of a file.\n```bash\n\u003e\u003e\u003e fs.path README.md \n/home/martinalejandrocastroalvarez/filesystem\n```\n\n#### Extracting the name of a file.\n```bash\n\u003e\u003e\u003e fs.name README.md \nREADME\n```\n\n#### Extracting the extensions of a file.\n```bash\n\u003e\u003e\u003e fs.ext README.md \nmd\n```\n\n#### Listing files in a directory (including the full path and supporting blank spaces)\n```bash\n\u003e\u003e\u003e fs.files | head -3\n/home/martinalejandrocastroalvarez/filesystem/s3.size\n/home/martinalejandrocastroalvarez/filesystem/s3.ls\n/home/martinalejandrocastroalvarez/filesystem/s3.get\n```\n\n#### Listing subdirectories (including the full path and supporting blank spaces)\n```bash\n\u003e\u003e\u003e fs.dirs /tmp | head -3\n/tmp/gimp\n/tmp/gimp/2.10\n/tmp/yarn--1663892367587-0.7886320579002157\n```\n\n#### Getting the size of a file\n```bash\n\u003e\u003e\u003e fs.size wallpaper.jpg \n1274698\n```\n\n#### Calculating the hash of a file\n```bash\n\u003e\u003e\u003e fs.sha256 wallpaper.jpg \nde55d0d07ab1dc397166e1ebbfd5ac4b535bdb7593e42bd0a9bf45e48e178a03\n```\n\n#### Nornalising the name of the files in a directory and removing duplicates.\n```bash\n\u003e\u003e\u003e fs.norm \u003cdirectory\u003e\n```\n\n#### Extracting the full path of a file or directory.\n```bash\n\u003e\u003e\u003e fs.full wallpaper.jpg \n/home/martinalejandrocastroalvarez/filesystem/wallpaper.jpg\n```\n\n#### Filtering a list of files from stdin.\n```bash\n\u003e\u003e\u003e fs.files | fs.filter FILES\n/home/martinalejandrocastroalvarez/filesystem/fs.map\n/home/martinalejandrocastroalvarez/filesystem/fs.filter\n\u003e\u003e\u003e fs.files | fs.filter -v FILES\n/home/martinalejandrocastroalvarez/filesystem/s3.size\n/home/martinalejandrocastroalvarez/filesystem/s3.ls\n/home/martinalejandrocastroalvarez/filesystem/s3.get\n```\n\n#### Applying a function to a files.\n```bash\n\u003e\u003e\u003e fs.files | fs.map fs.sha256  | head -3 \nc8a96740c1d6aaf2c3590e41e3df38f599ea7d6625fbbf34835e0c52ff87eefb\n0b976ce2e726c04857197574b173b7e35cc13b1da82091f434fb9236a81fe8f4\na3d66cf278f7e2e4499d861fee27ff755c5f5aadf46e1b75cb38eb06dd0171e8\n```\n\n#### Finding images in directory.\n```bash\nfs.img /home/martinalejandrocastroalvarez/filesystem/\n/home/martinalejandrocastroalvarez/filesystem/wallpaper.jpg\n```\n\n#### Replacing the contents of a file using regexp.\n```bash\n\u003e\u003e\u003e fs.files /tmp | fs.filter -i IPSUM | fs.replace LOREM DOLOR \n/tmp/a.txt:\n  [x] LOREM IPSUM\n  [✔] DOLOR IPSUM\n```\n\n#### Grepping in multiple files recursively\n```bash\n\u003e\u003e\u003e fs.grep apply\nDefinition.ts:47:    public apply(): void {\nCursive.ts:40:    public apply(): void {\n```\n\n#### Listing files that contain a given string\n```bash\n\u003e\u003e\u003e fs.grep apply\nCursive.ts\nDefinition.ts\n```\n\n## AWS S3\n\n#### Listing buckets in AWS S3\n```bash\ns3.buckets\n```\n\n#### Listing files in an AWS S3 bucket\n```bash\ns3.ls s3://\u003cbucket\u003e\n```\n\n#### Getting the size of a file in AWS S3\n```bash\ns3.size s3://\u003cbucket\u003e/\u003ckey\u003e\n```\n\n#### Posting the content of the current directory to an AWS S3 bucket and key\n```bash\ns3.post s3://\u003cbucket\u003e/\u003ckey\u003e/\n```\n\n#### Downloading the content of an AWS S3 bucket and key to the current directory\n```bash\ns3.get s3://\u003cbucket\u003e/\u003ckey\u003e/\n```\n\n#### Removing a bucket and key from AWS S3\n```bash\ns3.rm s3://\u003cbucket\u003e/\u003ckey\u003e/\n```\n\n#### Moving a key from one place to another in AWS S3\n```bash\ns3.mv s3://\u003cbucket\u003e/\u003ckey\u003e/ s3://\u003cbucket\u003e/\u003ckey\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartincastroalvarez%2Ffilesystem-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartincastroalvarez%2Ffilesystem-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartincastroalvarez%2Ffilesystem-tools/lists"}