Create complex directory structures and files in one command
Go to file
2024-06-06 12:36:53 +05:00
ff Remove -v option and add ffv 2024-04-22 15:06:34 +05:00
ffv Remove -v option and add ffv 2024-04-22 15:06:34 +05:00
LICENSE Create LICENSE 2024-06-06 12:36:53 +05:00
README.md Remove -v option and add ffv 2024-04-22 15:06:34 +05:00

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 (optional)
  • lsd (optional)

Usage

  ff [path file or folder]
 --help : prints usage info

Examples

Single file

ff file
 file

Single directory

ff dir/
 dir

Multiple files

ff file1 file2 file3
 file1
 file2
 file3

Multiple directories

ff dir1/ dir2/ dir3/
 dir1
 dir2
 dir3

File in a directory

ff dir/file
dir
└── file

Directory in a directory

ff dir1/dir2/
dir1
└── dir2

Multiple files in multiple directories

ff dir1/dir2/file1 dir3/file2
dir1
└── dir2
    └── file1
dir3
└── file2

If your shell supports brace expansion e.g bash, zsh, fish

ff dir1/{dir2/{file1,file2}.txt,dir3/file3.txt}
dir1
├── dir2
│   ├── file1.txt
│   └── file2.txt
└── dir3
    └── file3.txt

Advanced New File