mirror of
https://github.com/mintycube/fast-files.git
synced 2024-10-22 14:05:52 +02:00
added -v option to list created files
This commit is contained in:
parent
f6561b5721
commit
798ffbd7ac
@ -14,6 +14,8 @@ ff is a bash script which is a combination of 'mkdir' and 'touch'. It can create
|
||||
|
||||
```bash
|
||||
ff [path file or folder]
|
||||
--help : prints usage info
|
||||
-v : prints created files
|
||||
```
|
||||
|
||||
## Examples
|
||||
|
9
ff
9
ff
@ -4,7 +4,10 @@
|
||||
# █▀▀ ▄▀█ █▀ ▀█▀ █▀▀ █ █ █▀▀ █▀
|
||||
# █▀ █▀█ ▄█ █ █▀ █ █▄▄ ██▄ ▄█
|
||||
#
|
||||
# Usage: ff [path file or folder]
|
||||
# Usage: ff [option] [path file or folder]
|
||||
#
|
||||
# --help : prints usage info
|
||||
# -v : prints created files
|
||||
#
|
||||
# Description: Bash script which is a combination of 'mkdir' and 'touch'.
|
||||
# It can create directory structures and files simultaneously
|
||||
@ -98,7 +101,7 @@ fi
|
||||
|
||||
createObjects "$@"
|
||||
|
||||
# Only print created files if executing directly from the command line.
|
||||
if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then
|
||||
# Only print created files if "-v" (verbose) is the first argument
|
||||
if [[ "$1" == "-v" ]]; then
|
||||
listObjects "$@"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user