https://github.com/boredsquirrel/easy-bash-loops
A small script for easily creating yes/no bash loops for use in scripts. You can
https://github.com/boredsquirrel/easy-bash-loops
Last synced: about 2 months ago
JSON representation
A small script for easily creating yes/no bash loops for use in scripts. You can
- Host: GitHub
- URL: https://github.com/boredsquirrel/easy-bash-loops
- Owner: boredsquirrel
- License: gpl-3.0
- Created: 2023-03-23T15:47:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-10T12:57:01.000Z (about 3 years ago)
- Last Synced: 2025-01-26T20:23:19.719Z (over 1 year ago)
- Language: Shell
- Size: 152 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Easy bash loops
A small script for easily creating yes/no bash loops for use in scripts. You can
- Enter a question
- state what happens if yes or no
- save the file to your working directory (automatic renaming if there are duplicates)
- save the file to a custom directory (no matter if ending with "/" or not)
- copy the loop to your clipboard (Wayland only)



I fixed the code completely. It works very well now.
Dependencies:
- bash
- cat
- wl-clip (change it to xclip if you want)
- read
- printf (only for header)
## Install
```
wget https://github.com/trytomakeyouprivate/easy-bash-loops/raw/main/create-loop -p ~/.local/bin
chmod +x ~/.local/bin/create-loop
```