Skip to content

Instantly share code, notes, and snippets.

@Wintus
Created August 4, 2024 14:24
Show Gist options
  • Save Wintus/dc281e2495292441af7f00c1d084016d to your computer and use it in GitHub Desktop.
Save Wintus/dc281e2495292441af7f00c1d084016d to your computer and use it in GitHub Desktop.
find mkdir system
mkdir -p d/x
find d -regextype posix-extended -regex 'd(/x){1,29}' -exec mkdir -p '{}'/x \;
find d -regextype posix-extended \
-regex 'd((/x){3})+' -printf "Fizz" , \
-regex 'd((/x){5})+' -printf "Buzz" , \
-regex 'd((/x){3})+' -o \
-regex 'd((/x){5})+' -o \
-regex 'd(/x)+' -printf "%d" , \
-printf "\n"
@Wintus
Copy link
Author

Wintus commented Aug 4, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment