Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mintycube/fast-files
Create directories and files simultaneously
https://github.com/mintycube/fast-files
bash-script eza mkdir shell-script touch
Last synced: about 2 months ago
JSON representation
Create directories and files simultaneously
- Host: GitHub
- URL: https://github.com/mintycube/fast-files
- Owner: mintycube
- Created: 2023-09-23T05:47:49.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-01-15T14:44:35.000Z (5 months ago)
- Last Synced: 2024-01-27T10:35:55.149Z (5 months ago)
- Topics: bash-script, eza, mkdir, shell-script, touch
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- cli-apps - Fast Files - ff is a bash script which is a combination of `mkdir` and `touch`. It can create directory structures and files simultaneously and lists the created objects using `eza`, `lsd`, or `ls`. (<a name="file-handling"></a>File and file system handling)
- awesome-cli-apps - Fast Files - ff is a bash script which is a combination of `mkdir` and `touch`. It can create directory structures and files simultaneously and lists the created objects using `eza`, `lsd`, or `ls`. (<a name="file-handling"></a>File and file system handling)
README
# Fast Files (ff)
## Description
ff is a bash script which is a combination of 'mkdir' and 'touch'. It can create directory structures and files simultaneously and lists the created objects using eza, lsd, or ls.
## Dependencies
- bash
- [eza](https://github.com/eza-community/eza) (optional)
- [lsd](https://github.com/lsd-rs/lsd) (optional)## Usage
```bash
ff [path file or folder]
--help : prints usage info
-v : prints created files
```## Examples
### Single file
```bash
ff file
``````
file```
---
### Single directory
```bash
ff dir/
``````
dir
```---
### Multiple files
```bash
ff file1 file2 file3
``````
file1
file2
file3
```---
### Multiple directories
```bash
ff dir1/ dir2/ dir3/
``````
dir1
dir2
dir3
```---
### File in a directory
```bash
ff dir/file
``````
dir
└── file
```---
### Directory in a directory
```bash
ff dir1/dir2/
``````
dir1
└── dir2
```---
### Multiple files in multiple directories
```bash
ff dir1/dir2/file1 dir3/file2
``````
dir1
└── dir2
└── file1
dir3
└── file2
```---
### If your shell supprts brace expansion e.g bash, zsh, fish
```bash
ff dir1/{dir2/{file1,file2}.txt,dir3/file3.txt}
``````
dir1
├── dir2
│ ├── file1.txt
│ └── file2.txt
└── dir3
└── file3.txt
```---
## Related Projects
[Advanced New File](https://github.com/tanrax/terminal-AdvancedNewFile)